From a342f899412a2523e8b0edc3f1220fad1eee8ce3 Mon Sep 17 00:00:00 2001 From: pengda <1111@qq.com> Date: Wed, 9 Jul 2025 14:58:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E8=AE=BE=E7=BD=AE=20?= =?UTF-8?q?=E7=8B=AC=E7=AB=8B=E5=9F=9F=E5=90=8D=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/site/serviceSetting/domainSet.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/site/serviceSetting/domainSet.vue b/src/components/site/serviceSetting/domainSet.vue index bbe23e1..a44a55f 100644 --- a/src/components/site/serviceSetting/domainSet.vue +++ b/src/components/site/serviceSetting/domainSet.vue @@ -79,7 +79,6 @@ export default { if(this.domainFrom === '1'){ if(!this.newDomain.prefix || !this.newDomain.domain) return false obj.domain = this.newDomain.prefix + this.newDomain.domain - }else{ obj.domain = '' } @@ -95,8 +94,13 @@ export default { //替换域名 const protocol = new URL(that.info.domain).protocol; - that.info.domain = protocol + "//" +obj.domain; - that.info.ser_domain = protocol + "//" +obj.domain; + if(this.domainFrom === '1'){ + that.info.domain = protocol + "//" +obj.domain; + that.info.ser_domain = protocol + "//" +obj.domain; + }else{ + that.info.domain = that.info.site_domain; + that.info.ser_domain = ''; + } that.$emit('saveEvent', that.info) return true;