fix: bug
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m4s

This commit is contained in:
sexygoat
2026-05-11 15:51:50 +08:00
parent 766497dc31
commit 1990a3ccba
40 changed files with 832 additions and 127 deletions

View File

@@ -14,7 +14,8 @@ export const router = createRouter({
// 处理路由错误Chunk 加载失败等)
router.onError((error) => {
const pattern = /Loading chunk (\d+) failed|Failed to fetch dynamically imported module|Couldn't resolve component/
const pattern =
/Loading chunk (\d+) failed|Failed to fetch dynamically imported module|Couldn't resolve component/
const isChunkLoadFailed = error.message && pattern.test(error.message)
if (isChunkLoadFailed) {