fix(addMenuRole): 权限管理-修复当权限管理仅有一级时,点击报错的bug
This commit is contained in:
parent
c50e06ad7d
commit
0d6e8d0d2a
|
@ -543,7 +543,7 @@ export default {
|
||||||
} else {
|
} else {
|
||||||
this.menuAllList[index].changed = false
|
this.menuAllList[index].changed = false
|
||||||
this.menuAllList[index].checkArr = []
|
this.menuAllList[index].checkArr = []
|
||||||
this.menuAllList[index].children.forEach((item) => {
|
this.menuAllList[index].children && this.menuAllList[index].children.forEach((item) => {
|
||||||
item.changed = false
|
item.changed = false
|
||||||
item.checkArr = []
|
item.checkArr = []
|
||||||
if (item.children) {
|
if (item.children) {
|
||||||
|
|
Loading…
Reference in New Issue