diff --git a/package.json b/package.json index 935c5f5b..8f3d37fb 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "fe_manage", "version": "0.1.0", "private": true, + "homepage": "http://u-pre.boe.com/manage/", "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build", diff --git a/vue.config.js b/vue.config.js index 23d6b8f8..43e3ee79 100644 --- a/vue.config.js +++ b/vue.config.js @@ -9,24 +9,22 @@ const {defineConfig} = require("@vue/cli-service"); module.exports = defineConfig({ - publicPath: "/manage", - // transpileDependencies: true, - // devServer: { - // port: 8080, - // proxy: { - // "/manageApi": { - // target: "http://localhost:30001/", - // changeOrigin: true, //表示是否改变原域名 - // // secure: false, - // // ws: false, //表示WebSocket协议 - // pathRewrite: { - // "^/manageApi": "", - // }, - // }, - // "/userbasic": { - // target: "https://u-pre.boe.com", - // changeOrigin: true, - // }, - // }, - // }, + publicPath: "/manage", + // transpileDependencies: true, + devServer: { + port: 8080, + proxy: { + "/manageApi": { + // target:"http://192.168.19.246:30001", + // target:"http://192.168.100.208:30001", + target: "https://u-pre.boe.com/manageApi/", //这里后台的地址模拟的;应该填写你们真实的后台接口 + changeOrigin: true, //表示是否改变原域名 + // secure: false, + // ws: false, //表示WebSocket协议 + pathRewrite: { + "^/manageApi": "", + }, + }, + }, + }, });