🐛 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;
|
||||||
|
|||||||
@@ -3,11 +3,11 @@ import axios from "axios";
|
|||||||
const proxyStrategy = async (req, store) => {
|
const proxyStrategy = async (req, store) => {
|
||||||
const { data } = await axios.post(
|
const { data } = await axios.post(
|
||||||
store.state.postwoman.settings.PROXY_URL ||
|
store.state.postwoman.settings.PROXY_URL ||
|
||||||
"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