Browse Source

for old domain

Michael Wang 5 years ago
parent
commit
3c65a76831
6 changed files with 10 additions and 5 deletions
  1. 2 1
      .env.development
  2. 2 1
      .env.production
  3. 1 0
      .env.production-temp
  4. 2 1
      .env.stagingAli
  5. 2 1
      src/constants/constants.js
  6. 1 1
      src/router.js

+ 2 - 1
.env.development

@@ -13,7 +13,8 @@ VUE_APP_TK_SERVER_API_URL=http://ecs-test.qmth.com.cn
 VUE_APP_CORE_HOST_URL=https://ecs-test.qmth.com.cn:8878
 VUE_APP_OE_ADMIN_HOST_URL=https://ecs-test.qmth.com.cn:8878
 VUE_APP_OE_STUDENT_HOST_URL=https://ecs-test.qmth.com.cn:8878
-VUE_APP_PUBLIC_PATH=/oe/
+VUE_APP_ROUTER_PATH=/oe/
+VUE_APP_PUBLIC_PATH=/
 VUE_APP_SLS_STORE_NAME=student-client-test
 
 # VUE_APP_CONFIG_FILE_SEVER_URL=https://ecs-test-static.qmth.com.cn

+ 2 - 1
.env.production

@@ -2,7 +2,8 @@ VUE_APP_CONFIG_FILE_SEVER_URL=https://ecs-static.qmth.com.cn
 # 考虑直接用location.host,即以下两个变量不需要
 VUE_APP_TK_SERVER_HTML_URL=http://ecs.qmth.com.cn
 VUE_APP_TK_SERVER_API_URL=http://ecs.qmth.com.cn
-VUE_APP_PUBLIC_PATH=/oe/
+VUE_APP_ROUTER_PATH=/oe/
+VUE_APP_PUBLIC_PATH=/
 VUE_APP_SLS_STORE_NAME=student-client
 #VUE_APP_WK_SERVER_SOCKET=wss://ecs.qmth.com.cn:8878/api/ws/faceBiopsy
 #VUE_APP_WK_SERVER_SOCKET_FOR_AUDIO=wss://ecs.qmth.com.cn:8878/api/ws/fileAnswer

+ 1 - 0
.env.production-temp

@@ -2,6 +2,7 @@ VUE_APP_CONFIG_FILE_SEVER_URL=https://ecs-static.qmth.com.cn
 # 考虑直接用location.host,即以下两个变量不需要
 VUE_APP_TK_SERVER_HTML_URL=http://ecs.qmth.com.cn
 VUE_APP_TK_SERVER_API_URL=http://ecs.qmth.com.cn
+VUE_APP_ROUTER_PATH=/oe-web/
 VUE_APP_PUBLIC_PATH=/oe-web/
 VUE_APP_SLS_STORE_NAME=student-client
 #VUE_APP_WK_SERVER_SOCKET=wss://ecs.qmth.com.cn:8878/api/ws/faceBiopsy

+ 2 - 1
.env.stagingAli

@@ -3,7 +3,8 @@ VUE_APP_CONFIG_FILE_SEVER_URL=https://ecs-test-static.qmth.com.cn
 VUE_APP_TK_SERVER_HTML_URL=http://ecs-test.qmth.com.cn
 VUE_APP_TK_SERVER_API_URL=http://ecs-test.qmth.com.cn
 VUE_APP_SLS_STORE_NAME=student-client-test
-VUE_APP_PUBLIC_PATH=/oe/
+VUE_APP_ROUTER_PATH=/oe/
+VUE_APP_PUBLIC_PATH=/
 #VUE_APP_WK_SERVER_SOCKET=wss://ecs-test.qmth.com.cn:8878/api/ws/faceBiopsy
 #VUE_APP_WK_SERVER_SOCKET_FOR_AUDIO=wss://ecs-test.qmth.com.cn:8878/api/ws/fileAnswer
 VUE_APP_GIT_REPO_VERSION=TO_BE_OVERRIDED

+ 2 - 1
src/constants/constants.js

@@ -13,7 +13,8 @@ export const VUE_APP_WK_SERVER_SOCKET_FOR_AUDIO =
 export const VUE_APP_CONFIG_FILE_SEVER_URL =
   process.env.VUE_APP_CONFIG_FILE_SEVER_URL;
 export const VUE_APP_SLS_STORE_NAME = process.env.VUE_APP_SLS_STORE_NAME;
-export const FACE_API_MODEL_PATH = process.env.BASE_URL + "models/20190620/";
+export const FACE_API_MODEL_PATH =
+  process.env.VUE_APP_PUBLIC_PATH + "models/20190620/";
 // export const EPCC_DOMAIN = "iepcc-ps.ecs.qmth.com.cn";
 export const EPCC_DOMAIN = "bds.ecs.qmth.com.cn";
 export const CUG_DOMAIN = "cug.ecs.qmth.com.cn";

+ 1 - 1
src/router.js

@@ -20,7 +20,7 @@ import CheckComputer from "./features/OnlineExam/CheckComputer.vue";
 Vue.use(Router);
 let router = new Router({
   mode: "history",
-  base: process.env.BASE_URL,
+  base: process.env.VUE_APP_ROUTER_PATH,
   routes: [
     {
       path: "/",