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