fix_接口定义路由优化
This commit is contained in:
parent
8caad5c041
commit
29903fed59
|
@ -69,8 +69,11 @@ export default {
|
||||||
'$route': {
|
'$route': {
|
||||||
immediate: true,
|
immediate: true,
|
||||||
handler(to) {
|
handler(to) {
|
||||||
let path = to.path.split("/", 3);
|
let path = to.path.split("/", 4);
|
||||||
this.currentPath = '/' + path[1] + '/' + path[2];
|
this.currentPath = '/' + path[1] + '/' + path[2];
|
||||||
|
if (path[3] === "report") {
|
||||||
|
this.currentPath = this.currentPath + '/' + path[3];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue