feat: 补充用户模块权限json
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
@@ -87,7 +87,8 @@ export class NSAxios {
|
||||
// config.url = newUrl;
|
||||
return config;
|
||||
}, undefined);
|
||||
const errCodeArr = [13, 1];
|
||||
const errCodeArr = [13, 1, 3005];
|
||||
// const newMap = new Map([])
|
||||
this.instance.interceptors.response.use(
|
||||
(res: AxiosResponse) => {
|
||||
console.log('success', res);
|
||||
|
Reference in New Issue
Block a user