2 Star 6 Fork 3

兮家小二 / xj-client

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vue.config.js 810 Bytes
一键复制 编辑 原始数据 按行查看 历史
const {defineConfig} = require('@vue/cli-service');
const env = require('./src/config/env');
let basePath = env.basePath;
module.exports = defineConfig({
transpileDependencies: true,
// 服务地址配置
devServer: {
// https: false, // 是否使用https协议
// hotOnly: true, // 是否开启热更新
open: true, // 是否自动弹出浏览器页面
host: "localhost", // 默认本地地址
port: 9001, // 默认服务启动端口
proxy: {
'/api': {
//API服务器的地址
target: basePath + "/",
ws: true,
changeOrigin: true,
pathRewrite: {
'^/api': ''
}
},
}
},
});
1
https://gitee.com/wslxm/xj-client.git
git@gitee.com:wslxm/xj-client.git
wslxm
xj-client
xj-client
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891