|
|
|
@ -27,9 +27,19 @@ const AutoBackNotification = defineAsyncComponent(() => import('@/base/AutoBackN |
|
|
|
const router = useRouter() |
|
|
|
const route = useRoute() |
|
|
|
const store = useRootStore() |
|
|
|
const { language, showSearch, showDetail } = storeToRefs(store) |
|
|
|
const { checkHandleScreen, showCountDownDialog, title, toIndexTime, toWallpaperTime, isWallpaper, setLogout, resetClickNumber, logout } = |
|
|
|
useHandleScreen(handleScreen) |
|
|
|
const { language, showSearch, showDetail, mapStatus } = storeToRefs(store) |
|
|
|
const { |
|
|
|
checkHandleScreen, |
|
|
|
showCountDownDialog, |
|
|
|
title, |
|
|
|
toIndexTime, |
|
|
|
toWallpaperTime, |
|
|
|
isWallpaper, |
|
|
|
setLogout, |
|
|
|
resetClickNumber, |
|
|
|
logout, |
|
|
|
sleepToWallpaper |
|
|
|
} = useHandleScreen(handleScreen) |
|
|
|
|
|
|
|
//指定时间返回首页时做的操作 |
|
|
|
function handleScreen() { |
|
|
|
@ -54,6 +64,13 @@ onBeforeUnmount(() => { |
|
|
|
window.removeEventListener('touchend', checkHandleScreen) |
|
|
|
}) |
|
|
|
|
|
|
|
watch(mapStatus, newVal => { |
|
|
|
//当地图加载成功之后自动触发一次屏保弹框以便能进入屏保 |
|
|
|
if (newVal) { |
|
|
|
sleepToWallpaper() |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
watch(route, to => { |
|
|
|
if (to.fullPath === '/' || to.fullPath === '/nav') { |
|
|
|
window?.Map_QM?.startRender() |
|
|
|
|