feat: 补充用户模块权限json

This commit is contained in:
xuziqiang
2024-06-06 16:56:34 +08:00
parent 9c3508fbc8
commit 946384b9ed
7 changed files with 84 additions and 43 deletions

View File

@@ -108,18 +108,10 @@ export const appConfigStore = defineStore({
},
userLogin(data: loginData) {
if (this.userLoginApi) {
return httpRequest({ api: this.userLoginApi, params: data, pathParams: {}, requestConfig });
console.log(data);
// return httpRequest({ api: this.userLoginApi, params: data, pathParams: {}, requestConfig });
// return http.post(this.userLoginApi, data, {
// transformRequest: [
// (mode, headers) => {
// if (headers.qsToken) {
// delete headers.qsToken;
// }
// return JSON.stringify(mode);
// },
// ],
// });
return http.post(this.userLoginApi, data);
} else {
return null;
}