diff --git a/.env b/.env new file mode 100644 index 0000000..aa228f9 --- /dev/null +++ b/.env @@ -0,0 +1,16 @@ +VITE_BASE=/student-h5 +VITE_BASE_API= +VITE_BASE_LOGIN_URL=https://u-pre.boe.com/web?returnUrl= +VITE_PROXY_URL=http://111.231.196.214:30001 + + +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_TEST_DETAIL_URL=https://u-pre.boe.com/web/quizsummary?detailId= +VITE_BOE_TEST_OUT_DETAIL_URL=https://u-pre.boe.com/api/b1/tale/do-quiz?quizKid= +VITE_BOE_EXAM_DETAIL_URL=https://u-pre.boe.com/pc/exam/test?id= +VITE_BOE_PATH_DETAIL_URL=https://u-pre.boe.com/pc/forward?to=/student-h5 + +VITE_BOE_API_URL=https://u-pre.boe.com + +VITE_TASK_WHITE_TYPE=-8-,-12-,-13- \ No newline at end of file diff --git a/.env.boe b/.env.boe new file mode 100644 index 0000000..4978826 --- /dev/null +++ b/.env.boe @@ -0,0 +1,10 @@ +VITE_BASE=/student-h5 +VITE_BASE_API=/manageApi + +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_TEST_DETAIL_URL=https://u-pre.boe.com/web/quizsummary?detailId= +VITE_BOE_TEST_OUT_DETAIL_URL=https://u-pre.boe.com/api/b1/tale/do-quiz?quizKid= +VITE_BOE_EXAM_DETAIL_URL=https://u-pre.boe.com/pc/exam/test?id= + +VITE_BOE_API_URL=https://u-pre.boe.com \ No newline at end of file diff --git a/.env.prod b/.env.prod new file mode 100644 index 0000000..76667b9 --- /dev/null +++ b/.env.prod @@ -0,0 +1,15 @@ +VITE_BASE=/student-h5 +VITE_BASE_API=/manageApi +VITE_BASE_LOGIN_URL=https://u.boe.com/web?returnUrl= + + +VITE_BOE_ONLINE_CLASS_URL=https://u.boe.com/pc/course/studyindex?id= +VITE_BOE_CASS_DETAIL_URL=https://u.boe.com/pc/case/detail?id= +VITE_BOE_TEST_DETAIL_URL=https://u.boe.com/web/quizsummary?detailId= +VITE_BOE_TEST_OUT_DETAIL_URL=https://u.boe.com/api/b1/tale/do-quiz?quizKid= +VITE_BOE_EXAM_DETAIL_URL=https://u.boe.com/pc/exam/test?id= +VITE_BOE_PATH_DETAIL_URL=https://u.boe.com/pc/forward?to=/student-h5 + +VITE_BOE_API_URL=https://u.boe.com + +VITE_TASK_WHITE_TYPE=-8-,-12-,-13- diff --git a/.env.release b/.env.release new file mode 100644 index 0000000..4efc769 --- /dev/null +++ b/.env.release @@ -0,0 +1,12 @@ +VITE_BASE=/student-h5-release +VITE_BASE_API=/manageApi-release +VITE_BASE_LOGIN_URL=https://u.boe.com/web?returnUrl= + +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_TEST_DETAIL_URL=https://u.boe.com/web/quizsummary?detailId= +VITE_BOE_TEST_OUT_DETAIL_URL=https://u.boe.com/api/b1/tale/do-quiz?quizKid= +VITE_BOE_EXAM_DETAIL_URL=https://u.boe.com/pc-release/exam/test?id= +VITE_BOE_PATH_DETAIL_URL=https://u.boe.com/pc-release/forward?to=/student-h5-release + +VITE_BOE_API_URL=https://u.boe.com \ No newline at end of file diff --git a/package.json b/package.json index 23a462d..0b6cbb0 100644 --- a/package.json +++ b/package.json @@ -4,14 +4,19 @@ "private": true, "scripts": { "dev": "vite", - "server": "vite build && vite preview", - "build": "vite build" + "server": "vite build --mode boe && vite preview ", + "build": "vite build --mode release", + "build:boe": "vite build --mode boe", + "build:prod": "vite build --mode prod", + "build:release": "vite build --mode release", + "build:test": "vite build --mode test" }, "dependencies": { "axios": "^1.1.3", "core-js": "^3.26.0", "dayjs": "^1.11.6", - "element-plus": "^2.2.20", + "element-plus": "^2.2.27", + "json-bigint": "^1.0.0", "vue": "^3.2.45", "vue-router": "^4.1.6", "vuex": "^4.1.0" @@ -35,7 +40,8 @@ "vite": "^3.2.3", "vite-plugin-imp": "^2.3.1", "vite-plugin-mock": "^2.9.6", - "vite-plugin-style-import": "^2.0.0" + "vite-plugin-style-import": "^2.0.0", + "vite-plugin-top-level-await": "^1.2.1" }, "eslintConfig": { "root": true, diff --git a/public/favicon.ico b/public/favicon.ico index df36fcf..87c93eb 100644 Binary files a/public/favicon.ico and b/public/favicon.ico differ diff --git a/public/index.html b/public/index.html index 3e5a139..9cf6d76 100644 --- a/public/index.html +++ b/public/index.html @@ -5,7 +5,7 @@ - <%= htmlWebpackPlugin.options.title %> + 京东方