|
@@ -31,7 +31,7 @@ import { MenuList } from '@/services/go/ermcp/goodsInfo/interface';
|
|
|
const handleMenu = (context: SetupContext, path: string) => {
|
|
const handleMenu = (context: SetupContext, path: string) => {
|
|
|
const collapsed = ref<boolean>(false);
|
|
const collapsed = ref<boolean>(false);
|
|
|
const selectedKeys = ref<string[]>(['1-0']);
|
|
const selectedKeys = ref<string[]>(['1-0']);
|
|
|
- const openKeys = ref<string[]>(['1']);
|
|
|
|
|
|
|
+ const openKeys = ref<string[]>([path]);
|
|
|
|
|
|
|
|
function menuClick(value: any) {
|
|
function menuClick(value: any) {
|
|
|
const is = value.keyPath.includes(path) ? true : false;
|
|
const is = value.keyPath.includes(path) ? true : false;
|