Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

:bug: Fixed Nuxt loader won't finish after response

Liyas Thomas061f86fbfa3e
diff --git a/functions/strategies/AxiosStrategy.js b/functions/strategies/AxiosStrategy.js
index 5c8020784..de74ec377 100644
--- a/functions/strategies/AxiosStrategy.js
+++ b/functions/strategies/AxiosStrategy.js
@@ -2,7 +2,8 @@ import axios from "axios";
const axiosStrategy = async (req, _store) => {
const res = await axios(req);
+ window.$nuxt.$loading.finish();
return res;
-}
+};
export default axiosStrategy;
diff --git a/functions/strategies/ProxyStrategy.js b/functions/strategies/ProxyStrategy.js
index f28762d68..945482f48 100644
--- a/functions/strategies/ProxyStrategy.js
+++ b/functions/strategies/ProxyStrategy.js
@@ -3,11 +3,11 @@ import axios from "axios";
const proxyStrategy = async (req, store) => {
const { data } = await axios.post(
store.state.postwoman.settings.PROXY_URL ||
- "https://postwoman.apollotv.xyz/",
+ "https://postwoman.apollotv.xyz/",
req
);
-
+ window.$nuxt.$loading.finish();
return data;
-}
+};
export default proxyStrategy;