From bc651956f3b1c5e14e60fefc8c314a8bdc3076aa Mon Sep 17 00:00:00 2001 From: jingrow Date: Mon, 4 Aug 2025 15:18:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BF=AE=E6=94=B9DNS?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=99=A8=E6=97=B6=E6=97=A0=E6=B3=95=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/JsiteDomainModifyDNSServerDialog.vue | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) 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,