mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-07 01:46:43 +08:00
-- 发版
This commit is contained in:
2
.env
2
.env
@@ -8,6 +8,8 @@ VUE_APP_PROXY_URL=http://111.231.196.214:30001/
|
|||||||
VUE_APP_LOGIN_URL=https://u-pre.boe.com/web
|
VUE_APP_LOGIN_URL=https://u-pre.boe.com/web
|
||||||
# boe域名
|
# boe域名
|
||||||
VUE_APP_BOE_API_URL=https://u-pre.boe.com
|
VUE_APP_BOE_API_URL=https://u-pre.boe.com
|
||||||
|
#打包路径
|
||||||
|
VUE_APP_OUTPUT_DIR=./dist
|
||||||
|
|
||||||
# iframe嵌套url
|
# iframe嵌套url
|
||||||
VUE_APP_IFRAME_URL=https://u-pre.boe.com/pc/iframe
|
VUE_APP_IFRAME_URL=https://u-pre.boe.com/pc/iframe
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
NODE_ENV=test
|
NODE_ENV=test
|
||||||
VUE_APP_BASE=/manage
|
VUE_APP_BASE=/manage
|
||||||
VUE_APP_BASE_API=/manageApi
|
VUE_APP_BASE_API=/manageApi
|
||||||
|
VUE_APP_OUTPUT_DIR=./docker/dist
|
||||||
|
|
||||||
VUE_APP_BOE_API_URL=https://u-pre.boe.com
|
VUE_APP_BOE_API_URL=https://u-pre.boe.com
|
||||||
5
docker/Dockerfile
Normal file
5
docker/Dockerfile
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
FROM devforth/spa-to-http:latest
|
||||||
|
WORKDIR /
|
||||||
|
|
||||||
|
ADD ./dist/ .
|
||||||
|
EXPOSE 8080
|
||||||
@@ -50,7 +50,8 @@ export default {
|
|||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
form: {
|
form: {
|
||||||
account: "10181457",
|
account: "00004409",
|
||||||
|
// account: "10181457",
|
||||||
password: "1234567890Aa",
|
password: "1234567890Aa",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -6,26 +6,24 @@
|
|||||||
* @FilePath: /fe-manage/vue.config.js
|
* @FilePath: /fe-manage/vue.config.js
|
||||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
*/
|
*/
|
||||||
const { defineConfig } = require("@vue/cli-service");
|
const {defineConfig} = require("@vue/cli-service");
|
||||||
|
|
||||||
module.exports = defineConfig({
|
module.exports = defineConfig({
|
||||||
publicPath: process.env.VUE_APP_BASE,
|
publicPath: process.env.VUE_APP_BASE,
|
||||||
// transpileDependencies: true,
|
outputDir: process.env.VUE_APP_OUTPUT_DIR,
|
||||||
devServer: {
|
devServer: {
|
||||||
port: 8080,
|
port: 8080,
|
||||||
proxy: {
|
proxy: {
|
||||||
"/manageApi": {
|
"/manageApi": {
|
||||||
target: process.env.VUE_APP_PROXY_URL,
|
target: process.env.VUE_APP_PROXY_URL,
|
||||||
changeOrigin: true, //表示是否改变原域名
|
changeOrigin: true, //表示是否改变原域名
|
||||||
// secure: false,
|
pathRewrite: {
|
||||||
// ws: false, //表示WebSocket协议
|
"^/manageApi": "",
|
||||||
pathRewrite: {
|
},
|
||||||
"^/manageApi": "",
|
}, "/userbasic": {
|
||||||
},
|
target: process.env.VUE_APP_BOE_API_URL,
|
||||||
}, "/userbasic": {
|
changeOrigin: true, //表示是否改变原域名
|
||||||
target: process.env.VUE_APP_BOE_API_URL,
|
},
|
||||||
changeOrigin: true, //表示是否改变原域名
|
},
|
||||||
},
|
},
|
||||||
},
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user