小豆
小豆
Hey bro, have you solved your problem? I have the same problem ``` # github.com/mattn/go-gtk/glib In file included from glib.go:5, from _cgo_export.c:4: ../go/pkg/mod/github.com/mattn/[email protected]/glib/glib.go.h:183:1: warning: 'GThreadFunctions' is deprecated [-Wdeprecated-declarations] 183 |...
The same problem occurs
CreateDrawer 没有暴露openDrawer函数 添加子菜单时似乎没有传递便捷的有关父菜单的key,没法得知子菜单添加给谁
依赖似乎少了lodash,多了lodash-es 考虑统一修改为lodash-es,需要修改loadChunk.ts文件
src/views/system/menu/menu.vue中onMounted的多余代码 ``` // const keys = treeMenuList.result.sys_menu.map((item) => item.key); // Object.assign(formParams, keys); ``` 同时 `const treeMenuList = await getSystemMenu();` 需要二次封装以便添加菜单后子路由控制重载list 文字错误:handleDel函数 `您确定想删除此权限吗` 应修改为 `您确定想删除此菜单吗` 修改变量名易于理解:`function selectedTree(keys: [])` 修改为 `function selectedTree(currentSelectKey:...
`selectedTree` 没有 `delete formParams['children'];` 这样选择父目录重置时候会导致children保留
`src/layout/index.vue` 返回顶部在移动端会遮挡元素 修改为 ` ` 可选 将 `const currentRoute = useRoute();` 提取出来,而不是放在computed `src/store/modules/asyncRoute.ts` 的 `filter` 的 `.map((node: any) => ({ ...node }))` 似乎没有意义,希望作者看到能够回复告知一下作用
`src/components/Table/src/hooks/useDataSource.ts` 多余的 `const results = res[listField] ? res[listField] : [];` 用户权限管理设置权限存在严重bug,tree默认读取key,但是key单纯是key,权限已经变成了permission,就是说permission和key必须相同
src/utils/index.ts 函数修改为,treeAll在外面会导致多次全选权限重复 ``` export function getTreeAll(data: any[]): any[] { const treeAll: any[] = []; data.map((item) => { treeAll.push(item.key); if (item.children && item.children.length) { treeAll.push(...getTreeAll(item.children)); } }); return treeAll; } ```