订阅修改

This commit is contained in:
付民康
2025-03-21 12:07:27 +08:00
parent 574c65aa17
commit ef8c5e1c15
2 changed files with 6 additions and 6 deletions

View File

@@ -25,7 +25,7 @@ const subscribeTypeOptions = [
{ 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 = () => {

View File

@@ -31,7 +31,7 @@
<span>订阅漏洞预警通知</span>
</div>
</template>
<SubscriptionModal @close="colseSubscription" :softwareData="{id: softwareId}"></SubscriptionModal>
<SubscriptionModal @closeSub="isSub = true;" @close="colseSubscription" :softwareData="{id: softwareId}"></SubscriptionModal>
</d-modal>
</div>
</div>
@@ -201,7 +201,6 @@ const signCla = (row: any) => {
const subscribeModalVisable = ref(false);
const openSubscription = () => {
isSub.value = true;
subscribeModalVisable.value = true;
};
const colseSubscription = () => {