fix_接口定义路由优化

This commit is contained in:
wxg0103 2021-11-17 13:52:12 +08:00 committed by 刘瑞斌
parent 8caad5c041
commit 29903fed59
1 changed files with 4 additions and 1 deletions

View File

@ -69,8 +69,11 @@ export default {
'$route': {
immediate: true,
handler(to) {
let path = to.path.split("/", 3);
let path = to.path.split("/", 4);
this.currentPath = '/' + path[1] + '/' + path[2];
if (path[3] === "report") {
this.currentPath = this.currentPath + '/' + path[3];
}
}
}
},