提交 52ec0be6 authored 作者: 正反's avatar 正反

打包信息修改

上级 749a509e
......@@ -23,7 +23,7 @@ const routes = [
]
const router = new VueRouter({
mode: 'history',
mode: 'hash',
routes
})
......
......@@ -49,46 +49,46 @@ module.exports = {
// }
// },
// },
overlay: { // 让浏览器 overlay 同时显示警告和错误
warnings: true,
errors: true
},
host: "localhost",
port: 8080, // 端口号
https: false, // https:{type:Boolean}
open: false, //配置后自动启动浏览器
hotOnly: true, // 热更新
// proxy: 'http://localhost:8080', // 配置跨域处理,只有一个代理
proxy: { //配置多个代理
// "/testIp": {
// target: "http://197.0.0.1:8088",
// changeOrigin: true,
// ws: true, //websocket支持
// secure: false,
// pathRewrite: {
// "^/testIp": "/"
// }
// },
// "/elseIp": {
// target: "http://197.0.0.2:8088",
// changeOrigin: true,
// //ws: true,//websocket支持
// secure: false,
// pathRewrite: {
// "^/elseIp": "/"
// },
// overlay: { // 让浏览器 overlay 同时显示警告和错误
// warnings: true,
// errors: true
// },
// host: "localhost",
// port: 8080, // 端口号
// https: false, // https:{type:Boolean}
// open: false, //配置后自动启动浏览器
// hotOnly: true, // 热更新
// // proxy: 'http://localhost:8080', // 配置跨域处理,只有一个代理
// proxy: { //配置多个代理
// // "/testIp": {
// // target: "http://197.0.0.1:8088",
// // changeOrigin: true,
// // ws: true, //websocket支持
// // secure: false,
// // pathRewrite: {
// // "^/testIp": "/"
// // }
// // },
// // "/elseIp": {
// // target: "http://197.0.0.2:8088",
// // changeOrigin: true,
// // //ws: true,//websocket支持
// // secure: false,
// // pathRewrite: {
// // "^/elseIp": "/"
// // },
// },
"/baiduApi": {
target: "https://aip.baidubce.com", //访问地址
changeOrigin: true,
ws: true,
secure: false, //只有代理https 地址需要次选项
pathRewrite: {
'^/baiduApi': '/'
}
},
}
// // },
// "/baiduApi": {
// target: "https://aip.baidubce.com", //访问地址
// changeOrigin: true,
// ws: true,
// secure: false, //只有代理https 地址需要次选项
// pathRewrite: {
// '^/baiduApi': '/'
// }
// },
// }
},
// 第三方插件配置
pluginOptions: {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论