From ef8c5e1c15c80b047143aa35414a2dccc5c320c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=98=E6=B0=91=E5=BA=B7?= Date: Fri, 21 Mar 2025 12:07:27 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E9=98=85=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Jyh/Version/Detail/SubscriptionModal.vue | 9 +++++---- src/views/Jyh/Version/Detail/index.vue | 3 +-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/Jyh/Version/Detail/SubscriptionModal.vue b/src/views/Jyh/Version/Detail/SubscriptionModal.vue index d3ff261..8997893 100644 --- a/src/views/Jyh/Version/Detail/SubscriptionModal.vue +++ b/src/views/Jyh/Version/Detail/SubscriptionModal.vue @@ -23,9 +23,9 @@ const subscribeTypeOptions = [ { name: '短信', value: 'mobileSwitch', id: 1 }, { name: '邮件', value: 'emailSwitch', id: 2 }, { name: '站内通知', value: 'webSwitch', id: 3 }, -]; +]; const props = defineProps(['softwareData']); -const emit = defineEmits(['close']); +const emit = defineEmits(['close','closeSub']); const formRef = ref(null); const formData = ref({ subscribeType: [], @@ -59,6 +59,7 @@ const sendSubscribe = async () => { type: 'success' }) emit('close'); + emit('closeSub'); } } const confirm = () => { @@ -74,7 +75,7 @@ const confirm = () => { \ No newline at end of file + diff --git a/src/views/Jyh/Version/Detail/index.vue b/src/views/Jyh/Version/Detail/index.vue index ad31495..090d4fb 100644 --- a/src/views/Jyh/Version/Detail/index.vue +++ b/src/views/Jyh/Version/Detail/index.vue @@ -31,7 +31,7 @@ 订阅漏洞预警通知 - + @@ -201,7 +201,6 @@ const signCla = (row: any) => { const subscribeModalVisable = ref(false); const openSubscription = () => { - isSub.value = true; subscribeModalVisable.value = true; }; const colseSubscription = () => {