lex-xin vor 4 Jahren
Ursprung
Commit
e36b62aecb
4 geänderte Dateien mit 20 neuen und 20 gelöschten Zeilen
  1. 0 0
      dist/index.html
  2. 0 0
      dist/static/js/app.8fa9548c.js
  3. 0 0
      dist/static/js/app.f9b8fe03.js
  4. 20 20
      src/permission.js

Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 0
dist/index.html


Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 0
dist/static/js/app.8fa9548c.js


Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 0
dist/static/js/app.f9b8fe03.js


+ 20 - 20
src/permission.js

@@ -11,27 +11,27 @@ NProgress.configure({ showSpinner: false }) // NProgress Configuration
 
 const whiteList = ['/login'] // no redirect whitelist
 
-router.onError((error) => {
-  const isChunkLoadFailed = error.message.indexOf('chunk')
-  const targetPath = router.history.pending.fullPath;
-  if (isChunkLoadFailed) {
-    // console.log(router.app.$confirm)
-    // router.push({ path: "/403", query: { path: targetPath } })
-    router.app.$confirm("网站有更新请点击确定刷新页面?", "更新提示", {
-      confirmButtonText: "确定",
-      cancelButtonText: "取消",
-      type: "warning"
-    })
-      .then(() => {
-        // router.replace(targetPath);
-        window.reload()
-      })
-      .catch(() => {
-        return
-      });
+// router.onError((error) => {
+//   const isChunkLoadFailed = error.message.indexOf('chunk')
+//   const targetPath = router.history.pending.fullPath;
+//   if (isChunkLoadFailed) {
+//     // console.log(router.app.$confirm)
+//     // router.push({ path: "/403", query: { path: targetPath } })
+//     router.app.$confirm("网站有更新请点击确定刷新页面?", "更新提示", {
+//       confirmButtonText: "确定",
+//       cancelButtonText: "取消",
+//       type: "warning"
+//     })
+//       .then(() => {
+//         // router.replace(targetPath);
+//         window.reload()
+//       })
+//       .catch(() => {
+//         return
+//       });
 
-  }
-});
+//   }
+// });
 
 router.beforeEach(async (to, from, next) => {
   // from.query = to.query

Einige Dateien werden nicht angezeigt, da zu viele Dateien in diesem Diff geändert wurden.