|
|
|
@ -19,7 +19,7 @@ _axios.defaults.headers.delete['Content-Type'] = 'application/json;charset=UTF-8
@@ -19,7 +19,7 @@ _axios.defaults.headers.delete['Content-Type'] = 'application/json;charset=UTF-8
|
|
|
|
|
|
|
|
|
|
let logout; |
|
|
|
|
|
|
|
|
|
export const registerRouter = routerP => { |
|
|
|
|
export const registerRouter = (routerP) => { |
|
|
|
|
router = routerP; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
@ -37,6 +37,9 @@ _axios.interceptors.request.use(
@@ -37,6 +37,9 @@ _axios.interceptors.request.use(
|
|
|
|
|
delEmpty(data); |
|
|
|
|
data.t = time; |
|
|
|
|
} |
|
|
|
|
if (data != null && typeof data === 'string') { |
|
|
|
|
config.headers['Content-Type'] = 'text/plain;charset=UTF-8'; |
|
|
|
|
} |
|
|
|
|
return config; |
|
|
|
|
}, |
|
|
|
|
function (error) { |
|
|
|
|