mirror of
http://112.124.100.131/ebiz-ai/ebiz-ai-knowledge-manage.git
synced 2025-12-10 11:26:50 +08:00
获取角色的菜单树添加null判断
This commit is contained in:
@@ -243,7 +243,7 @@ export default {
|
|||||||
getRoleMenu(roleId)
|
getRoleMenu(roleId)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
const nodes = response.content.content
|
const nodes = response.content.content
|
||||||
if (nodes.length === 0) {
|
if (nodes === null || nodes.length === 0) {
|
||||||
this.defaultCheckedKeys = []
|
this.defaultCheckedKeys = []
|
||||||
this.$refs.menuTreeRef.setCheckedKeys([])
|
this.$refs.menuTreeRef.setCheckedKeys([])
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user