react-toolkits 2.11.9 → 2.11.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/lib/index.js +0 -4
- package/lib/index.js.map +1 -1
- package/locale/hooks.js.map +1 -1
- package/locale/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/lib/index.js
CHANGED
|
@@ -283,10 +283,6 @@ var init_axios = __esm({
|
|
|
283
283
|
Interceptor = ({ children }) => {
|
|
284
284
|
const state = useToolkitsStore((s) => s);
|
|
285
285
|
const { notification } = App.useApp();
|
|
286
|
-
if (!state.token) {
|
|
287
|
-
window.location.replace(state.signInPath);
|
|
288
|
-
return null;
|
|
289
|
-
}
|
|
290
286
|
if (requestInterceptorId) {
|
|
291
287
|
axiosInstance.interceptors.request.eject(requestInterceptorId);
|
|
292
288
|
}
|