This commit is contained in:
yuping
2022-12-14 20:50:46 +08:00
parent 74e41e9abe
commit fffc5c66b2
5 changed files with 53 additions and 49 deletions

1
.env
View File

@@ -1,6 +1,7 @@
VITE_BASE=/manage VITE_BASE=/manage
VITE_BASE_API=/ VITE_BASE_API=/
VITE_PROXY_URL=http://111.231.196.214:30001/ VITE_PROXY_URL=http://111.231.196.214:30001/
VITE_LOGIN_URL=https://u-pre.boe.com/web
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=

View File

@@ -1,6 +1,7 @@
VITE_BASE=/fe-student VITE_BASE=/fe-student
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=
VITE_BOE_CASS_DETAIL_URL=https://u-pre.boe.com/pc/case/detail?id= VITE_BOE_CASS_DETAIL_URL=https://u-pre.boe.com/pc/case/detail?id=
VITE_BOE_TEST_DETAIL_URL=https://u-pre.boe.com/web/quizsummary?detailId= VITE_BOE_TEST_DETAIL_URL=https://u-pre.boe.com/web/quizsummary?detailId=

View File

@@ -1,5 +1,7 @@
VITE_BASE=/fe-student-release VITE_BASE=/fe-student-release
VITE_BASE_API=/manageApi-release VITE_BASE_API=/manageApi-release
VITE_LOGIN_URL=https://u.boe.com/web
VITE_BOE_ONLINE_CLASS_URL=https://u.boe.com/pc-release/course/studyindex?id= VITE_BOE_ONLINE_CLASS_URL=https://u.boe.com/pc-release/course/studyindex?id=
VITE_BOE_CASS_DETAIL_URL=https://u.boe.com/pc-release/case/detail?id= VITE_BOE_CASS_DETAIL_URL=https://u.boe.com/pc-release/case/detail?id=

View File

@@ -8,6 +8,7 @@
*/ */
import {message} from "ant-design-vue"; import {message} from "ant-design-vue";
import axios from "axios"; import axios from "axios";
import router from "@/router";
// import { getCookie } from '../api/method' // import { getCookie } from '../api/method'
// const Qs = require("qs"); // const Qs = require("qs");
@@ -56,8 +57,7 @@ http.interceptors.response.use(
return response; return response;
} else { } else {
if (code === 1000) { if (code === 1000) {
window.open("https://u-pre.boe.com/web/", '_self'); process.env.NODE_ENV === 'development' ? router.push({path: 'login'}) : (window.location.href = process.env.VITE_LOGIN_URL)
// window.open("http://111.231.196.214:12013/manage/login", '_self');
} }
console.log("api %o", msg); console.log("api %o", msg);
} }

View File

@@ -9,7 +9,7 @@
const {defineConfig} = require("@vue/cli-service"); const {defineConfig} = require("@vue/cli-service");
module.exports = defineConfig({ module.exports = defineConfig({
publicPath: process.env.VITE_BASE, publicPath: "/manage",
// transpileDependencies: true, // transpileDependencies: true,
devServer: { devServer: {
port: 8080, port: 8080,