From 98c1b5fb0418748990dbc43f370ee6ee205850b3 Mon Sep 17 00:00:00 2001 From: Caps <452713115@qq.com> Date: Wed, 29 Apr 2020 23:59:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=83=E9=99=90=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/user/AccountManager.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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(); }