diff --git a/src/components/header.vue b/src/components/header.vue index c3f45511..f7f539c 100644 --- a/src/components/header.vue +++ b/src/components/header.vue @@ -87,6 +87,7 @@ const to = (url) => { path: `${url}`, }); data.nowTab = url; + data.menushow = false; }; const onMenu = (val) => { console.log(val); @@ -99,6 +100,7 @@ const onMenu = (val) => { router.push({ path: `${val.url}`, }); + data.nowTab = val.url; data.menushow = false; }; const router = useRouter();