|
|
@@ -18,7 +18,6 @@ export default function ({
|
|
|
config.headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
|
}
|
|
|
|
|
|
- console.log("Before, making request to ", config.url, config.baseURL);
|
|
|
console.log("nuxtAxios...........req.............req");
|
|
|
config.baseURL = store.state.domainConfig.api;
|
|
|
console.log("Before, making request to ", config.url, config.baseURL);
|
|
|
@@ -46,11 +45,8 @@ export default function ({
|
|
|
$axios.onResponse(res => {
|
|
|
const data = res.data;
|
|
|
console.log("res:::::::::");
|
|
|
- console.log(app.$deviceType);
|
|
|
- // console.log(res);
|
|
|
console.log(res.config.url);
|
|
|
console.log(JSON.stringify(data));
|
|
|
- // req && req.url && needLogin(req.url)
|
|
|
let needLogin = false;
|
|
|
if (res.config && res.config.data && typeof res.config.data === "string") {
|
|
|
const queryData = res.config.data;
|