Browse Source

fix: 回到屏保会重新触发回到首页

v1.0.1
jiannibang 3 years ago
parent
commit
9a798704be
  1. 1
      src/composables/useHandleScreen.js

1
src/composables/useHandleScreen.js

@ -141,6 +141,7 @@ export const useHandleScreen = (callback, screenSaveCallback) => {
state.countDownGif = false
state.isWall = false
state.autoTimer = setTimeout(async () => {
if (router.currentRoute.value.fullPath === '/billboard') return
if (state.times[0] !== 0) {
if (router.currentRoute.value.fullPath !== '/index') {
await indexPromise()

Loading…
Cancel
Save