Browse Source

fix: 修复到时间不返回首页的问题

dev
jiannibang 3 years ago
parent
commit
7e6c65067c
  1. 5
      src/components/PublicComponent/PublicComponent.vue

5
src/components/PublicComponent/PublicComponent.vue

@ -56,7 +56,6 @@ const hotRecommend = computed(() => indexList.value?.hotSearch?.slice(0, 5) ?? [
const handleHot = item => { const handleHot = item => {
const _ = shopList.value.find(_shop => _shop.shopId === item.shopId) const _ = shopList.value.find(_shop => _shop.shopId === item.shopId)
console.log(router.fullPath)
router.push('/guide') router.push('/guide')
store.SET_SHOP(null) store.SET_SHOP(null)
setTimeout(() => { setTimeout(() => {
@ -76,9 +75,9 @@ async function handleScreen() {
window.Map_QM.changeMapIPState(shop.value?.houseNum, shop.value?.formatColor) window.Map_QM.changeMapIPState(shop.value?.houseNum, shop.value?.formatColor)
setLogoutRef(false) setLogoutRef(false)
resetClickNumber() resetClickNumber()
store.SET_SELECTED_MODULE(sidebarList.value[0].title)
language.value !== 'zh' && store.SET_LANGUAGE('zh') language.value !== 'zh' && store.SET_LANGUAGE('zh')
await router.push('/billboard')
store.SET_SHOP(null)
await router.push('/guide')
} }
const timer = ref(null) const timer = ref(null)

Loading…
Cancel
Save