feat: 给用户管理添加按钮级权限管理
This commit is contained in:
@@ -150,7 +150,7 @@ export const useUserStore = defineStore({
|
||||
return new Promise<ResponseResult<LoginResult>>((resolve, reject) => {
|
||||
getLogin(data)
|
||||
.then(data => {
|
||||
if (data.code === 200) {
|
||||
if (data.success) {
|
||||
setToken(data.data);
|
||||
}
|
||||
resolve(data);
|
||||
@@ -189,7 +189,7 @@ export const useUserStore = defineStore({
|
||||
return new Promise<ResponseResult<LoginResult>>((resolve, reject) => {
|
||||
refreshTokenApi(data)
|
||||
.then(data => {
|
||||
if (data.code === 200) {
|
||||
if (data.success) {
|
||||
setToken(data.data);
|
||||
}
|
||||
resolve(data);
|
||||
|
||||
Reference in New Issue
Block a user