Fetch the repository succeeded.
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': ''
}
}
}
}
})
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。