feat: 权限逻辑处理

This commit is contained in:
xuziqiang
2024-06-14 11:49:51 +08:00
parent 08972bfbfb
commit da3d5840df
9 changed files with 201 additions and 111 deletions

View File

@@ -109,9 +109,9 @@ export const appConfigStore = defineStore({
userLogin(data: loginData) {
if (this.userLoginApi) {
console.log(data);
// return httpRequest({ api: this.userLoginApi, params: data, pathParams: {}, requestConfig });
return httpRequest({ api: this.userLoginApi, params: data, pathParams: {}, requestConfig });
return http.post(this.userLoginApi, data);
// return http.post(this.userLoginApi, data);
} else {
return null;
}