diff --git a/src/api/config.js b/src/api/config.js
index f7faae2f..0130bcf3 100644
--- a/src/api/config.js
+++ b/src/api/config.js
@@ -60,7 +60,9 @@ http.interceptors.response.use(
if (code === 1000) {
(process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'alpine') ?
router.push({path: 'login', query: { returnUrl: router.currentRoute.value.fullPath }}) :
- (window.location.href = process.env.VUE_APP_LOGIN_URL + encodeURIComponent(window.location.protocol + import.meta.env.VUE_APP_BOE_API_URL + import.meta.env.VUE_APP_BASE + router.currentRoute.value.fullPath))
+ (window.location.href = process.env.VUE_APP_LOGIN_URL + encodeURIComponent(window.location.protocol + process.env.VUE_APP_BOE_API_URL + process.env.VUE_APP_BASE + router.currentRoute.value.fullPath))
+ // TODO token过期后退出登录 清空当前用户标记 - 为了刷新页面使用
+ localStorage.removeItem('refreshPage')
return Promise.reject(response);
}
show && message.error(msg);
diff --git a/src/components/drawers/AddOpenCourse.vue b/src/components/drawers/AddOpenCourse.vue
index 8b7cad30..1725fb54 100644
--- a/src/components/drawers/AddOpenCourse.vue
+++ b/src/components/drawers/AddOpenCourse.vue
@@ -122,10 +122,10 @@