🐛 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

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