fix(系统设置): 修复环境校验问题
This commit is contained in:
parent
3577872605
commit
5fe9234da6
|
@ -133,7 +133,7 @@
|
|||
this.condition.headers = this.httpConfig.headers;
|
||||
this.add();
|
||||
}
|
||||
this.condition = {type: "NONE", details: [new KeyValue({name: "", value: "contains"})], protocol: "http", socket: "", domain: "", port: 0, headers: [new KeyValue()]};
|
||||
this.condition = {id: undefined, type: "NONE", details: [new KeyValue({name: "", value: "contains"})], protocol: "http", socket: "", domain: "", port: 0, headers: [new KeyValue()]};
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
|
@ -250,7 +250,7 @@
|
|||
return index > 1;
|
||||
},
|
||||
add() {
|
||||
if(this.checkNode()){
|
||||
if (this.condition.type ==="NONE" && this.checkNode()) {
|
||||
this.$warning("启用条件为 '无' 的域名已经存在请更新!");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue