Ai
4 Star 0 Fork 0

孙勇军/vue-mguo

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
vue.config.js 794 Bytes
Copy Edit Raw Blame History
yangfan authored 2022-04-28 09:32 +08:00 . 现场播放同步问题
const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
transpileDependencies: true,
lintOnSave: false,
devServer: {
port: 80, // 端口
host: "0.0.0.0",
proxy: {
'/api': {
// target: 'http://127.0.0.1:8081/',
target: 'https://mangoytree.tingdao.com/api/',
// target: 'http://apis.bnxf.net/', //接口域名线上
//target: 'http://api.ypcms1.com/api/', //接口域名本地
changeOrigin: true, //是否跨域
ws: true, //是否代理 websockets
secure: true, //是否https接口
pathRewrite: { //路径重置
'^/api': ''
}
}
}
}
})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/syjava/vue-mguo.git
git@gitee.com:syjava/vue-mguo.git
syjava
vue-mguo
vue-mguo
master

Search