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

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.