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;