mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-10 19:36:48 +08:00
-- 测试发版
This commit is contained in:
@@ -94,7 +94,7 @@ export async function request(_url, params) {
|
|||||||
}).then(resp => resp.data).then(response => {
|
}).then(resp => resp.data).then(response => {
|
||||||
if (response.code !== 200 && response.code !== 0) {
|
if (response.code !== 200 && response.code !== 0) {
|
||||||
if (response.code === 1000) {
|
if (response.code === 1000) {
|
||||||
import.meta.env.MODE === 'development' ? router.push({ path: '/login' }) : window.open(import.meta.env.VITE_BASE_LOGIN_URL,'_top')
|
(import.meta.env.MODE === 'development' || import.meta.env.MODE === 'test') ? router.push({ path: '/login' }) : window.open(import.meta.env.VITE_BASE_LOGIN_URL,'_top')
|
||||||
}
|
}
|
||||||
// if (import.meta.env.DEV && response.code === 1000) {
|
// if (import.meta.env.DEV && response.code === 1000) {
|
||||||
// router.push({path: '/login'})
|
// router.push({path: '/login'})
|
||||||
|
|||||||
Reference in New Issue
Block a user