Browse Source

feat: app对接

潮流
姜鑫 4 years ago
parent
commit
684bcebe91
  1. 5
      src/components/PublicComponent/PublicComponent.vue

5
src/components/PublicComponent/PublicComponent.vue

@ -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('/')
} }

Loading…
Cancel
Save