|
|
@@ -28,8 +28,9 @@ const permissionStore = usePermissionStore();
|
|
|
// 只显示当前一级菜单下的二级菜单
|
|
|
const topMenus = computed(() => permissionStore.getTopbarRoutes().filter((menu) => menu.hidden !== true));
|
|
|
const currentTopMenuPath = computed(() => {
|
|
|
- // 特例:如果当前路由是 approval,则返回 /source 作为一级菜单
|
|
|
- if (route.path === '/source/push/approval') {
|
|
|
+ // console.log("[Sidebar] route.path", route.path);
|
|
|
+ // 特例
|
|
|
+ if (route.path === '/source/push/approval' || route.path.startsWith('/source/split/edit')) {
|
|
|
return '/source';
|
|
|
}
|
|
|
// 取当前路由的一级菜单 path
|