From f428647fd311afa94ebd7bb67c424e98c751f42c Mon Sep 17 00:00:00 2001 From: CareyWong Date: Tue, 7 Apr 2020 10:16:52 +0800 Subject: [PATCH] Support surge.doh --- src/views/Subconverter.vue | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/src/views/Subconverter.vue b/src/views/Subconverter.vue index 109b674..46b340d 100644 --- a/src/views/Subconverter.vue +++ b/src/views/Subconverter.vue @@ -78,15 +78,15 @@ - + - + - + @@ -99,6 +99,12 @@ 更多选项 + + + + + 模板定制功能 + @@ -324,7 +330,14 @@ export default { tfo: false, scv: false, fdn: false, - appendType: false + appendType: false, + + // tpl 定制功能 + tpl: { + surge: { + doh: false, // dns 查询是否使用 DoH + } + } }, loading: false, @@ -435,6 +448,10 @@ export default { this.form.fdn.toString() + "&sort=" + this.form.sort.toString(); + + if (this.form.tpl.surge.doh === true) { + this.customSubUrl += "&surge.doh=true" + } } this.$copyText(this.customSubUrl);