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.js
CHANGED
|
@@ -287,7 +287,9 @@ var apiUpload = axios.create({
|
|
|
287
287
|
return response;
|
|
288
288
|
}, function (error) {
|
|
289
289
|
if (error.response.status === 401) {
|
|
290
|
-
localStorage.
|
|
290
|
+
Object.keys(localStorage).forEach(function (key) {
|
|
291
|
+
if (!key.includes('learning-plan')) delete localStorage[key];
|
|
292
|
+
});
|
|
291
293
|
window.location.href = "/login";
|
|
292
294
|
}
|
|
293
295
|
|