|
|
@ -15,11 +15,10 @@ |
|
|
|
* limitations under the License. |
|
|
|
* limitations under the License. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
import { defineComponent, ref, PropType, watch } from 'vue' |
|
|
|
import { defineComponent, ref, PropType } from 'vue' |
|
|
|
import { NLayoutSider, NMenu } from 'naive-ui' |
|
|
|
import { NLayoutSider, NMenu } from 'naive-ui' |
|
|
|
import { useMenuClick } from './use-menuClick' |
|
|
|
import { useMenuClick } from './use-menuClick' |
|
|
|
import { useMenuStore } from '@/store/menu/menu' |
|
|
|
import { useMenuStore } from '@/store/menu/menu' |
|
|
|
import { useRoute } from 'vue-router' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const Sidebar = defineComponent({ |
|
|
|
const Sidebar = defineComponent({ |
|
|
|
name: 'Sidebar', |
|
|
|
name: 'Sidebar', |
|
|
@ -34,14 +33,15 @@ const Sidebar = defineComponent({ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
setup() { |
|
|
|
setup() { |
|
|
|
const route = useRoute() |
|
|
|
|
|
|
|
const menuStore = useMenuStore() |
|
|
|
const menuStore = useMenuStore() |
|
|
|
const collapsedRef = ref(false) |
|
|
|
const collapsedRef = ref(false) |
|
|
|
const defaultExpandedKeys = [ |
|
|
|
const defaultExpandedKeys = [ |
|
|
|
'workflow', |
|
|
|
'workflow', |
|
|
|
|
|
|
|
'task', |
|
|
|
'udf-manage', |
|
|
|
'udf-manage', |
|
|
|
'service-manage', |
|
|
|
'service-manage', |
|
|
|
'statistical-manage' |
|
|
|
'statistical-manage', |
|
|
|
|
|
|
|
'task-group-manage' |
|
|
|
] |
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
const { handleMenuClick } = useMenuClick() |
|
|
|
const { handleMenuClick } = useMenuClick() |
|
|
|