🐛 Fixed Nuxt loader won't finish after response
This commit is contained in:
@@ -2,7 +2,8 @@ import axios from "axios";
|
|||||||
|
|
||||||
const axiosStrategy = async (req, _store) => {
|
const axiosStrategy = async (req, _store) => {
|
||||||
const res = await axios(req);
|
const res = await axios(req);
|
||||||
|
window.$nuxt.$loading.finish();
|
||||||
return res;
|
return res;
|
||||||
}
|
};
|
||||||
|
|
||||||
export default axiosStrategy;
|
export default axiosStrategy;
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ const proxyStrategy = async (req, store) => {
|
|||||||
"https://postwoman.apollotv.xyz/",
|
"https://postwoman.apollotv.xyz/",
|
||||||
req
|
req
|
||||||
);
|
);
|
||||||
|
window.$nuxt.$loading.finish();
|
||||||
return data;
|
return data;
|
||||||
}
|
};
|
||||||
|
|
||||||
export default proxyStrategy;
|
export default proxyStrategy;
|
||||||
|
|||||||
Reference in New Issue
Block a user