🐛 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 res = await axios(req);
|
||||
window.$nuxt.$loading.finish();
|
||||
return res;
|
||||
}
|
||||
};
|
||||
|
||||
export default axiosStrategy;
|
||||
|
||||
@@ -6,8 +6,8 @@ const proxyStrategy = async (req, store) => {
|
||||
"https://postwoman.apollotv.xyz/",
|
||||
req
|
||||
);
|
||||
|
||||
window.$nuxt.$loading.finish();
|
||||
return data;
|
||||
}
|
||||
};
|
||||
|
||||
export default proxyStrategy;
|
||||
|
||||
Reference in New Issue
Block a user