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;