|
@ -79,7 +79,6 @@ export default { |
|
|
if(this.domainFrom === '1'){ |
|
|
if(this.domainFrom === '1'){ |
|
|
if(!this.newDomain.prefix || !this.newDomain.domain) return false |
|
|
if(!this.newDomain.prefix || !this.newDomain.domain) return false |
|
|
obj.domain = this.newDomain.prefix + this.newDomain.domain |
|
|
obj.domain = this.newDomain.prefix + this.newDomain.domain |
|
|
|
|
|
|
|
|
}else{ |
|
|
}else{ |
|
|
obj.domain = '' |
|
|
obj.domain = '' |
|
|
} |
|
|
} |
|
@ -95,8 +94,13 @@ export default { |
|
|
|
|
|
|
|
|
//替换域名 |
|
|
//替换域名 |
|
|
const protocol = new URL(that.info.domain).protocol; |
|
|
const protocol = new URL(that.info.domain).protocol; |
|
|
that.info.domain = protocol + "//" +obj.domain; |
|
|
if(this.domainFrom === '1'){ |
|
|
that.info.ser_domain = protocol + "//" +obj.domain; |
|
|
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) |
|
|
that.$emit('saveEvent', that.info) |
|
|
return true; |
|
|
return true; |
|
|