mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-09 19:06:47 +08:00
feat:合并
This commit is contained in:
2
.env.boe
2
.env.boe
@@ -1,4 +1,4 @@
|
|||||||
VITE_BASE=/fe-student-h5
|
VITE_BASE=/student-h5
|
||||||
VITE_BASE_API=/manageApi
|
VITE_BASE_API=/manageApi
|
||||||
|
|
||||||
VITE_BOE_ONLINE_CLASS_URL=https://u-pre.boe.com/pc/course/studyindex?id=
|
VITE_BOE_ONLINE_CLASS_URL=https://u-pre.boe.com/pc/course/studyindex?id=
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
VITE_BASE=/fe-student-h5
|
VITE_BASE=/student-h5
|
||||||
VITE_BASE_API=/manageApi
|
VITE_BASE_API=/manageApi
|
||||||
VITE_BASE_LOGIN_URL=https://u.boe.com/web?returnUrl=
|
VITE_BASE_LOGIN_URL=https://u.boe.com/web?returnUrl=
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
VITE_BASE=/fe-student-h5-release
|
VITE_BASE=/student-h5-release
|
||||||
VITE_BASE_API=/manageApi-release
|
VITE_BASE_API=/manageApi-release
|
||||||
VITE_BASE_LOGIN_URL=https://u.boe.com/web?returnUrl=
|
VITE_BASE_LOGIN_URL=https://u.boe.com/web?returnUrl=
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
VITE_BASE=/fe-student-h5
|
VITE_BASE=/student-h5
|
||||||
VITE_BASE_API=/manageApi
|
VITE_BASE_API=/manageApi
|
||||||
|
|
||||||
VITE_OUTPUT_DIR=./docker/dist
|
VITE_OUTPUT_DIR=./docker/dist
|
||||||
|
|||||||
@@ -18,8 +18,11 @@ const router = createRouter({
|
|||||||
})
|
})
|
||||||
router.beforeEach((to, from, next) => {
|
router.beforeEach((to, from, next) => {
|
||||||
if (!getCookie('token')) {
|
if (!getCookie('token')) {
|
||||||
to.path.includes('/login') ? next() : next({path: '/login', query: {returnUrl: to.fullPath}})
|
if (import.meta.env.MODE === "development" || import.meta.env.MODE === "test") {
|
||||||
return
|
to.path.includes('/login') ? next() : next({path: '/login', query: {returnUrl: to.fullPath}})
|
||||||
|
}else {
|
||||||
|
window.location.href = import.meta.env.VITE_BASE_LOGIN_URL + import.meta.env.VITE_BASE+to.fullPath
|
||||||
|
}
|
||||||
}
|
}
|
||||||
next()
|
next()
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ const returnclick = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const form = ref({
|
const form = ref({
|
||||||
account: "00004409",
|
account: "10181457",
|
||||||
password: "1234567890Aa",
|
password: "1234567890Aa",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user