功能变化: 菜单授权返回包含父级的完整名称

This commit is contained in:
猿小天
2023-12-28 00:41:07 +08:00
parent 8d37d929b2
commit 411f065bfc
2 changed files with 8 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ watch(()=>{
const result = await deptInfoStore.getParentDeptById(newVal)
if(result?.nodes){
let name = ""
console.log(result)
result.nodes.forEach((item:any,index:number)=>{
name += index>0?`/${item.name}`:item.name
})