mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 03:46:45 +08:00
feat:修改左侧导航及打开页面导航
This commit is contained in:
@@ -44,16 +44,19 @@ export default {
|
||||
state.openList.map((item, key) => {
|
||||
if (item.href === value.href) {
|
||||
if (state.openList.length === 1) {
|
||||
state.openList.splice(key, 1);
|
||||
$router.push({ path: "/learningpath" });
|
||||
} else {
|
||||
if (key === state.openList.length - 1) {
|
||||
$router.push({ path: state.openList[key - 1].href });
|
||||
state.openList.splice(key, 1);
|
||||
} else {
|
||||
$router.push({ path: state.openList[key + 1].href });
|
||||
if (state.openList[0].href !== "/learningpath") {
|
||||
state.openList.splice(key, 1);
|
||||
}
|
||||
$router.push({ path: "/learningpath" });
|
||||
} else {
|
||||
if (value.active) {
|
||||
if (key === state.openList.length - 1) {
|
||||
$router.push({ path: state.openList[key - 1].href });
|
||||
} else {
|
||||
$router.push({ path: state.openList[key + 1].href });
|
||||
}
|
||||
}
|
||||
state.openList.splice(key, 1);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user