-- 测试发版

This commit is contained in:
yuping
2023-01-11 10:57:04 +08:00
parent 9fad4de01f
commit 4db7257b57
4 changed files with 10 additions and 1 deletions

1
.env
View File

@@ -1,5 +1,6 @@
VITE_BASE=/fe-student
VITE_BASE_API=
VITE_OUTPUT_DIR=./dist
VITE_BASE_LOGIN_URL=https://u-pre.boe.com/web/
VITE_PROXY_URL=http://111.231.196.214:30001

5
docker/Dockerfile Normal file
View File

@@ -0,0 +1,5 @@
FROM devforth/spa-to-http:latest
WORKDIR /
ADD ./dist/ .
EXPOSE 8080

View File

@@ -34,7 +34,7 @@ import { boeRequest } from "@/api/request";
import { GET_USER_INFO } from "@/api/ThirdApi";
import { useStore } from "vuex";
import { onMounted } from "vue";
import router from "@/router";
import {useRoute} from "vue-router/dist/vue-router";
console.log("版本2.0.2------------");
const store = useStore();

View File

@@ -14,6 +14,9 @@ const path = require('path')
export default defineConfig(({ command, mode }) =>
({
base: loadEnv(mode, process.cwd()).VITE_BASE,
build:{
outDir: loadEnv(mode, process.cwd()).VITE_OUTPUT_DIR,
},
plugins: [
vue(),
// legacy({