提交价格套餐功能

This commit is contained in:
wuweihua
2026-09-04 14:56:05 +08:00
parent f8b9681583
commit 5e15ab9c44
47 changed files with 6243 additions and 9 deletions
+3 -1
View File
@@ -1,4 +1,4 @@
import router from './router'
import router, { notFoundRoute } from './router'
import { ElMessage } from 'element-plus'
import NProgress from 'nprogress'
import 'nprogress/nprogress.css'
@@ -51,6 +51,8 @@ router.beforeEach(async (to, from) => {
router.addRoute(route)
}
})
// 404 必须在全部动态路由之后注册,否则字典数据等隐藏页会被通配抢走
router.addRoute(notFoundRoute)
// 重新导航到目标路由,确保动态路由已注册
return { ...to, replace: true }
} catch (err) {