diff --git a/src/components/CaseCard.vue b/src/components/CaseCard.vue index 0dd25ae..21b974b 100644 --- a/src/components/CaseCard.vue +++ b/src/components/CaseCard.vue @@ -30,12 +30,21 @@ import A6 from '@/static/img/caseshow/specialequip.png' import A7 from '@/static/img/caseshow/healthcare.png' import A8 from '@/static/img/caseshow/smarthome.png' import A9 from '@/static/img/caseshow/electronics.png' -import router from '@/router' +import { useRoute, useRouter } from 'vue-router' +const router = useRouter() +const route = useRoute() +import { watch } from 'vue' const props = defineProps({ activeTab: { type: Number, }, }) +watch( + () => route.query.t, + () => { + router.go(0) + }, +) const toClassifyPage = id => { router.push({ path: '/case-show',