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

打包信息修改

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