From e3c720caf76714fadf6763395ef4c87662f25624 Mon Sep 17 00:00:00 2001 From: maochaoying <925670706@qq.com> Date: Fri, 1 Dec 2023 18:47:10 +0800 Subject: [PATCH] link --- src/views/SoftDetail/index.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/views/SoftDetail/index.vue b/src/views/SoftDetail/index.vue index 4c7ffdc..8862118 100644 --- a/src/views/SoftDetail/index.vue +++ b/src/views/SoftDetail/index.vue @@ -164,6 +164,14 @@ onMounted(() => { activeTab.value = route.query?.t } }) + +watch( + () => route.query?.t, + () => { + activeTab.value = route.query?.t + }, + { immediate: true, deep: true }, +)