diff --git a/src/App.vue b/src/App.vue index bc766a13..8d61be82 100644 --- a/src/App.vue +++ b/src/App.vue @@ -33,7 +33,7 @@ import {USER_PERMISSION} from "@/api/ThirdApi"; const store = useStore(); const isLogin = ref(false); -console.log("版本2.1.6------------"); +console.log("版本2.1.7------------"); // 监听关闭浏览器 let time1 = ref(0); diff --git a/src/api/config.js b/src/api/config.js index f7faae2f..d2d9e197 100644 --- a/src/api/config.js +++ b/src/api/config.js @@ -60,7 +60,7 @@ 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)) return Promise.reject(response); } show && message.error(msg); diff --git a/src/views/learningpath/LearningPath.vue b/src/views/learningpath/LearningPath.vue index 142de566..9e16c8d1 100644 --- a/src/views/learningpath/LearningPath.vue +++ b/src/views/learningpath/LearningPath.vue @@ -100,7 +100,7 @@ >