|
@@ -86,7 +86,7 @@
|
|
<el-checkbox v-model="form.new_name" label="Clash New Field"></el-checkbox>
|
|
<el-checkbox v-model="form.new_name" label="Clash New Field"></el-checkbox>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row>
|
|
<el-row>
|
|
- <el-checkbox v-model="form.udp" label="启用 UDP"></el-checkbox>
|
|
|
|
|
|
+ <el-checkbox v-model="form.udp" @change="needUdp = true" label="启用 UDP"></el-checkbox>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row>
|
|
<el-row>
|
|
<el-checkbox v-model="form.appendType" label="节点类型"></el-checkbox>
|
|
<el-checkbox v-model="form.appendType" label="节点类型"></el-checkbox>
|
|
@@ -378,7 +378,9 @@ export default {
|
|
uploadConfig: "",
|
|
uploadConfig: "",
|
|
uploadPassword: "",
|
|
uploadPassword: "",
|
|
myBot: tgBotLink,
|
|
myBot: tgBotLink,
|
|
- sampleConfig: remoteConfigSample
|
|
|
|
|
|
+ sampleConfig: remoteConfigSample,
|
|
|
|
+
|
|
|
|
+ needUdp: false, // 是否需要添加 udp 参数
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -483,8 +485,6 @@ export default {
|
|
this.form.emoji.toString() +
|
|
this.form.emoji.toString() +
|
|
"&list=" +
|
|
"&list=" +
|
|
this.form.nodeList.toString() +
|
|
this.form.nodeList.toString() +
|
|
- "&udp=" +
|
|
|
|
- this.form.udp.toString() +
|
|
|
|
"&tfo=" +
|
|
"&tfo=" +
|
|
this.form.tfo.toString() +
|
|
this.form.tfo.toString() +
|
|
"&scv=" +
|
|
"&scv=" +
|
|
@@ -494,6 +494,10 @@ export default {
|
|
"&sort=" +
|
|
"&sort=" +
|
|
this.form.sort.toString();
|
|
this.form.sort.toString();
|
|
|
|
|
|
|
|
+ if (this.needUdp) {
|
|
|
|
+ this.customSubUrl += "&udp=" + this.form.udp.toString()
|
|
|
|
+ }
|
|
|
|
+
|
|
if (this.form.tpl.surge.doh === true) {
|
|
if (this.form.tpl.surge.doh === true) {
|
|
this.customSubUrl += "&surge.doh=true";
|
|
this.customSubUrl += "&surge.doh=true";
|
|
}
|
|
}
|