diff --git a/dashboard/src2/components/JsiteDomainModifyDNSServerDialog.vue b/dashboard/src2/components/JsiteDomainModifyDNSServerDialog.vue index 8abfa5e..f342e70 100644 --- a/dashboard/src2/components/JsiteDomainModifyDNSServerDialog.vue +++ b/dashboard/src2/components/JsiteDomainModifyDNSServerDialog.vue @@ -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,