huangbin 4 years ago
parent
commit
4592479f77
1 changed files with 1 additions and 1 deletions
  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;