mo 4 年之前
父节点
当前提交
19989c397e
共有 4 个文件被更改,包括 3 次插入2 次删除
  1. 0 0
      dist/index.html
  2. 0 0
      dist/static/js/app.3aaae58e.js
  3. 0 0
      dist/static/js/app.cfde6354.js
  4. 3 2
      src/permission.js

文件差异内容过多而无法显示
+ 0 - 0
dist/index.html


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/app.3aaae58e.js


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/app.cfde6354.js


+ 3 - 2
src/permission.js

@@ -14,7 +14,7 @@ router.onError((error) => {
   const isChunkLoadFailed = error.message.indexOf('chunk')
   const targetPath = router.history.pending.fullPath;
   if (isChunkLoadFailed) {
-    console.log(router.app.$confirm)
+    // console.log(router.app.$confirm)
     // router.push({ path: "/403", query: { path: targetPath } })
     router.app.$confirm("网站有更新请点击确定刷新页面?", "更新提示", {
       confirmButtonText: "确定",
@@ -22,7 +22,8 @@ router.onError((error) => {
       type: "warning"
     })
       .then(() => {
-        router.replace(targetPath);
+        // router.replace(targetPath);
+        window.reload()
       })
       .catch(() => {
         return

部分文件因为文件数量过多而无法显示