huangbin преди 4 години
родител
ревизия
4592479f77
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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;