🐛 Fixed Nuxt loader won't finish after response

This commit is contained in:
Liyas Thomas
2020-01-15 06:33:04 +05:30
parent 1b783fdfa0
commit 061f86fbfa
2 changed files with 5 additions and 4 deletions

View File

@@ -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;

View File

@@ -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;