Commit 2c4f22ab authored by cxr's avatar cxr

feat(cxr): 不对响应数据做处理

parent 5f7bcaa1
......@@ -121,9 +121,9 @@ export const useUserStore = defineStore({
async tmallabSimulationLogin(params: { loginName: string; password: string }): Promise<any> {
try {
const data = await tmallabLoginApi(params);
this.setTmallabToken(data.token);
this.setToken(data.token);
return this.afterLoginAction(true, data);
this.setTmallabToken(data.data.token);
this.setToken(data.data.token);
return this.afterLoginAction(true, data.data);
} catch (error) {
return Promise.reject(error);
}
......
......@@ -224,7 +224,7 @@ function createAxios(opt?: Partial<CreateAxiosOptions>) {
// 是否返回原生响应头 比如:需要获取响应头时使用该属性
isReturnNativeResponse: false,
// 需要对返回数据进行处理
isTransformResponse: true,
isTransformResponse: false,
// post请求的时候添加参数到url
joinParamsToUrl: false,
// 格式化提交参数时间
......@@ -271,7 +271,7 @@ function createTmallabAxios(opt?: Partial<CreateAxiosOptions>) {
// 是否返回原生响应头 比如:需要获取响应头时使用该属性
isReturnNativeResponse: false,
// 需要对返回数据进行处理
isTransformResponse: true,
isTransformResponse: false,
// post请求的时候添加参数到url
joinParamsToUrl: false,
// 格式化提交参数时间
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment