mario-core 2.9.10-beta → 2.9.11-beta
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/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +3 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -284,7 +284,9 @@ var apiUpload = axios.create({
|
|
|
284
284
|
return response;
|
|
285
285
|
}, function (error) {
|
|
286
286
|
if (error.response.status === 401) {
|
|
287
|
-
localStorage.
|
|
287
|
+
Object.keys(localStorage).forEach(function (key) {
|
|
288
|
+
if (!key.includes('learning-plan')) delete localStorage[key];
|
|
289
|
+
});
|
|
288
290
|
window.location.href = "/login";
|
|
289
291
|
}
|
|
290
292
|
|