修复修改DNS服务器时无法保存的问题
This commit is contained in:
parent
93136d0ea5
commit
bc651956f3
@ -195,7 +195,7 @@ export default {
|
||||
if (data.status === 'success') {
|
||||
toast.success('DNS服务器修改成功!');
|
||||
this.$emit('success', {
|
||||
domain: this.domain,
|
||||
domain: this.domainDoc?.domain,
|
||||
dnsServers: this.dnsServers,
|
||||
message: data.message
|
||||
});
|
||||
@ -211,15 +211,6 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
// 初始化DNS服务器信息
|
||||
if (this.domainDoc) {
|
||||
this.dnsServers.dns1 = this.domainDoc.dns_host1 || '';
|
||||
this.dnsServers.dns2 = this.domainDoc.dns_host2 || '';
|
||||
this.dnsServers.dns3 = this.domainDoc.dns_host3 || '';
|
||||
this.dnsServers.dns4 = this.domainDoc.dns_host4 || '';
|
||||
this.dnsServers.dns5 = this.domainDoc.dns_host5 || '';
|
||||
this.dnsServers.dns6 = this.domainDoc.dns_host6 || '';
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
cancel() {
|
||||
@ -228,7 +219,7 @@ export default {
|
||||
modifyDNSServer() {
|
||||
this.error = null;
|
||||
this.$resources.modifyDNSServer.submit({
|
||||
domain: this.domain,
|
||||
domain: this.domainDoc?.domain,
|
||||
dns1: this.dnsServers.dns1,
|
||||
dns2: this.dnsServers.dns2,
|
||||
dns3: this.dnsServers.dns3 || undefined,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user