feat: 给用户管理添加按钮级权限管理

This commit is contained in:
2025-02-22 03:12:48 +08:00
parent bb38b5016f
commit 3a6cb4897b
18 changed files with 82 additions and 44 deletions

View File

@@ -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);