From ed1f3dc37860a4ce12e36b58c477918325493ea3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=98=89=E4=BC=9F?= <8473136@qq.com> Date: Wed, 25 Sep 2024 10:48:43 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E5=AD=90=E5=9F=9F=E5=90=8D?= =?UTF-8?q?=E5=92=8C=E8=87=AA=E5=AE=9A=E4=B9=89=E5=9F=9F=E5=90=8D=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E4=BA=8C=E9=80=89=E4=B8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/proxy/index.vue | 70 +++++++++++++++++++++++---------------- 1 file changed, 41 insertions(+), 29 deletions(-) diff --git a/src/views/proxy/index.vue b/src/views/proxy/index.vue index 60e067d..3259afa 100644 --- a/src/views/proxy/index.vue +++ b/src/views/proxy/index.vue @@ -238,6 +238,18 @@ const handleSubmit = async () => { return; } } + if ( + !( + editForm.value.subdomain || + editForm.value.customDomains.filter(f => f !== "").length > 0 + ) + ) { + ElMessage({ + type: "warning", + message: "请至少添加一个 子域名 / 自定义域名" + }); + return; + } loading.value.form = 1; const data = clone(editForm.value); if (data._id) { @@ -514,7 +526,7 @@ onUnmounted(() => { class="mr-2" type="danger" size="small" - >已禁用 + >已禁用 被访问者 + >被访问者 @@ -699,8 +711,8 @@ onUnmounted(() => {