mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-05 19:41:44 +08:00
Update app.js
This commit is contained in:
parent
f52e4aff2d
commit
04a114ad5b
@ -36,6 +36,7 @@
|
||||
// 路由前置处理
|
||||
let loading = null;
|
||||
router.beforeEach(function (to, fr, next) {
|
||||
console.log(to)
|
||||
let name = to.fullPath.replace(/[.\/]+/g, '_');
|
||||
if (router.hasRoute(name)) {
|
||||
console.log('');
|
||||
@ -45,7 +46,6 @@
|
||||
});
|
||||
next();
|
||||
} else {
|
||||
console.log(to)
|
||||
router.addRoute({name: name, path: to.fullPath, component: loadVueFile(to.fullPath)});
|
||||
next({name: name});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user