提交价格套餐功能
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user