main #2

Merged
jingrow merged 250 commits from main into v1 2026-01-13 22:45:50 +08:00
Showing only changes of commit bc651956f3 - Show all commits

View File

@ -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,