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