Sfoglia il codice sorgente

优化横屏提示,用回话存储记录是否提示,提示过后不再重复提示,重新刷新加载后再次提示,指定路由不会提示

liyanbo 1 mese fa
parent
commit
002b9a13ac
1 ha cambiato i file con 2 aggiunte e 5 eliminazioni
  1. 2 5
      src/App.vue

+ 2 - 5
src/App.vue

@@ -101,7 +101,7 @@ const handleResize = () => {
 }
 
 // 监听路由变化
-watch(() => route.path, (newPath, oldPath) => {
+watch(() => route.path, () => {
   // 如果进入排除路由,立即关闭提示
   if (isExcludedRoute()) {
     showLandscapeHint.value = false
@@ -211,10 +211,7 @@ onUnmounted(() => {
   padding: 0;
 }
 html,
-body,
-.common-layout,
-.el-container,
-#app {
+body{
   width: 100vw;
   height: 100vh;
   overflow: hidden;