mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update app.js
This commit is contained in:
parent
84261c2a55
commit
3714683d80
@ -33,12 +33,12 @@
|
|||||||
|
|
||||||
router.beforeEach(function (to, fr, next) {
|
router.beforeEach(function (to, fr, next) {
|
||||||
|
|
||||||
let page = to.fullPath;
|
const page = to.fullPath;
|
||||||
if (to.fullPath === '/') {
|
if (to.fullPath === '/') {
|
||||||
page = './static/template/index.vue';
|
page = './static/template/index.vue';
|
||||||
}
|
}
|
||||||
|
|
||||||
let name = page.replace(/[.\/]+/g, '_');
|
const name = page.replace(/[.\/]+/g, '_');
|
||||||
if (router.hasRoute(name)) {
|
if (router.hasRoute(name)) {
|
||||||
next();
|
next();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user