|
|
@ -41,7 +41,7 @@ const Search = defineAsyncComponent(() => import('@/components/Search/Search.vue |
|
|
const router = useRouter() |
|
|
const router = useRouter() |
|
|
const route = useRoute() |
|
|
const route = useRoute() |
|
|
const store = useStore() |
|
|
const store = useStore() |
|
|
const { shop, showDetail, showSearch, sidebarList, language } = storeToRefs(store) |
|
|
|
|
|
|
|
|
const { shop, showDetail, showSearch, sidebarList, language, showVoice } = storeToRefs(store) |
|
|
|
|
|
|
|
|
const { logoutRef, resetClickNumber, setLogoutRef } = useLogout() |
|
|
const { logoutRef, resetClickNumber, setLogoutRef } = useLogout() |
|
|
const { title, countDownGif, isWall, countDownToWall, countDownNum, send, checkHandleScreen } = useHandleScreen(handleScreen) |
|
|
const { title, countDownGif, isWall, countDownToWall, countDownNum, send, checkHandleScreen } = useHandleScreen(handleScreen) |
|
|
@ -56,6 +56,9 @@ async function handleScreen() { |
|
|
setLogoutRef(false) |
|
|
setLogoutRef(false) |
|
|
resetClickNumber() |
|
|
resetClickNumber() |
|
|
store.SET_SELECTED_MODULE(sidebarList.value[0].title) |
|
|
store.SET_SELECTED_MODULE(sidebarList.value[0].title) |
|
|
|
|
|
showDetail.value && store.SET_SHOW_DETAIL(false) |
|
|
|
|
|
showSearch.value && store.SET_SHOW_SEARCH(false) |
|
|
|
|
|
showVoice.value && store.SET_SHOW_VOICE(false) |
|
|
language.value !== 'zh' && store.SET_LANGUAGE('zh') |
|
|
language.value !== 'zh' && store.SET_LANGUAGE('zh') |
|
|
await router.push('/') |
|
|
await router.push('/') |
|
|
} |
|
|
} |
|
|
|