mo 1 year ago
parent
commit
8348ef42f0
2 changed files with 3 additions and 2 deletions
  1. 3 1
      index.html
  2. 0 1
      src/components/RouterError/index.tsx

+ 3 - 1
index.html

@@ -11,7 +11,9 @@
   <meta http-equiv="Cache" content="no-cache">
   <meta http-equiv="pragram" content="no-cache">
   <meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate">
-
+  <meta http-equiv="pragma" content="no-cache">
+  <meta http-equiv="expires" content="0">
+  <meta name="viewport" content="width=device-width,initial-scale=1.0">
   <meta name="apple-mobile-web-app-capable" content="yes" />
   <!-- 设置苹果工具栏颜色 -->
   <meta name="apple-mobile-web-app-status-bar-style" content="black" />

+ 0 - 1
src/components/RouterError/index.tsx

@@ -19,7 +19,6 @@ export default defineComponent({
       const isChunkLoadFailed = str.indexOf('imported');
       console.log(error, to)
       // const targetPath = router.history.pending.fullPath
-
       if (isChunkLoadFailed != -1 && !refreshing) {
         refreshing = true;
         console.log('onError刷新');