From 98cba51541b9a450b91c9ccf3b023749b9737dfc Mon Sep 17 00:00:00 2001 From: RuoYi <yzz_ivy@163.com> Date: 星期六, 21 十月 2023 14:31:24 +0800 Subject: [PATCH] 登录不做数据重复提交验证 --- src/store/modules/user.js | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 20350e4..d127d9e 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -7,6 +7,7 @@ { state: () => ({ token: getToken(), + id: '', name: '', avatar: '', roles: [], @@ -40,10 +41,11 @@ this.roles = res.roles this.permissions = res.permissions } else { - this.setRoutes = ['ROLE_DEFAULT'] + this.roles = ['ROLE_DEFAULT'] } + this.id = user.userId this.name = user.userName - this.avatar = avatar; + this.avatar = avatar resolve(res) }).catch(error => { reject(error) -- Gitblit v1.9.3