From 2c4bffea762f417abb5d5d16c0567c17beda6410 Mon Sep 17 00:00:00 2001 From: Caps <452713115@qq.com> Date: Tue, 28 Apr 2020 11:18:25 +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 | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/pages/user/AccountManager.vue b/src/pages/user/AccountManager.vue index 331df91..00d13f1 100644 --- a/src/pages/user/AccountManager.vue +++ b/src/pages/user/AccountManager.vue @@ -192,12 +192,6 @@ mounted: function () { this.listRoleInfo(); this.listOfShop(); - if (this.$route.query != null) { - this.item = this.$route.query; - //别的页面跳转过来 - this.changeRoleId = this.item.id; - this.bus.$emit('callBack'); - } this.listAccountInfoFunction(); // 绑定enter事件 this.enterKeyup(); @@ -239,6 +233,12 @@ let row = data[i]; that.roleList.push(row); } + if (that.$route.query != null) { + that.item = that.$route.query; + //别的页面跳转过来 + that.changeRoleId = that.item.id; + that.bus.$emit('callBack'); + } } }) }, @@ -271,6 +271,11 @@ }, //搜索账号内容 listAccountInfoFunction: function () { + if (this.$route.query != null) { + this.item = this.$route.query; + //别的页面跳转过来 + this.changeRoleId = this.item.id; + } let that = this; that.data1 = []; let roleId = that.changeRoleId;