diff --git a/src/utils/permission.js b/src/utils/permission.js index 8bc40d6..6133d4f 100644 --- a/src/utils/permission.js +++ b/src/utils/permission.js @@ -61,13 +61,3 @@ router.afterEach(async () => { await store.dispatch('GET_DEPLIST') }) - -router.onError((error) => { - const pattern = /Loading chunk (\d)+ failed/g - console.log('xcq --- pattern: ', pattern) - const isChunkLoadFailed = error.message.match(pattern) - const targetPath = router.history.pending.fullPath - if (isChunkLoadFailed) { - router.replace(targetPath) - } -})