diff --git a/src/pages/user/AccountManager.vue b/src/pages/user/AccountManager.vue index fc3c000..2c92c2d 100644 --- a/src/pages/user/AccountManager.vue +++ b/src/pages/user/AccountManager.vue @@ -223,7 +223,6 @@ id:"0", name:"全部" }); - that.changeRoleId = "0"; for (let i = 0; i < data.length; i++) { let row = data[i]; that.roleList.push(row); @@ -231,7 +230,13 @@ if (that.$route.query != null) { that.item = that.$route.query; //别的页面跳转过来 - that.changeRoleId = that.item.id; + if(that.item.id === undefined){ + that.changeRoleId = "0"; + }else { + that.changeRoleId = that.item.id; + } + }else { + that.changeRoleId = "0"; } that.listAccountInfoFunction(); }