huangbin %!s(int64=4) %!d(string=hai) anos
pai
achega
4592479f77
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/views/information/goods/components/leftMenu/index.vue

+ 1 - 1
src/views/information/goods/components/leftMenu/index.vue

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