From 2f8a13c063268ebabdabea89f9e38022b005e778 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=82=A5=E7=BE=8A?= Date: Tue, 11 Jun 2024 01:37:40 +0800 Subject: [PATCH] Add files via upload --- src/views/Subconverter.vue | 44 ++++++++++---------------------------- 1 file changed, 11 insertions(+), 33 deletions(-) diff --git a/src/views/Subconverter.vue b/src/views/Subconverter.vue index 1d42e759..f928cd93 100755 --- a/src/views/Subconverter.vue +++ b/src/views/Subconverter.vue @@ -35,21 +35,10 @@ allow-create filterable @change="selectChanged" - @blur="(event) => handleBlur(event, 'customBackend')" placeholder="可输入自己的后端" style="width: 100%" > - - + @@ -57,21 +46,10 @@ v-model="form.shortType" allow-create filterable - @blur="(event) => handleBlur(event, 'shortTypes')" placeholder="可输入其他可用短链API" style="width: 100%" > - - + @@ -79,7 +57,6 @@ v-model="form.remoteConfig" allow-create filterable - @blur="(event) => handleBlur(event, 'remoteConfig')" placeholder="请选择" style="width: 100%" > @@ -505,6 +482,15 @@ export default { "sub-web作者提供": "https://api.wcc.best", "sub作者&lhie1提供": "https://api.dler.io", }, + backendOptions: [ + {value: "https://url.v1.mk"}, + {value: "https://sub.d1.mk"}, + {value: "https://api.tsutsu.one"}, + {value: "https://www.nameless13.com"}, + {value: "https://sub.xeton.dev"}, + {value: "https://api.wcc.best"}, + {value: "https://api.dler.io"}, + ], remoteConfig: [ { label: "通用", @@ -977,14 +963,6 @@ export default { } //监听系统主题,自动切换! }, methods: { - handleBlur(event, optionType) { - const inputElement = event.target; - const inputValue = inputElement.value; - if (inputValue && !this.options[optionType].find(option => option.value === inputValue)) { - this.options[optionType].unshift({ value: inputValue, label: inputValue }); - } - this.form[optionType] = inputValue; - }, selectChanged() { this.getBackendVersion(); },