完善客户画像,品牌分析
This commit is contained in:
@@ -31,12 +31,12 @@ module.exports = {
|
||||
productionSourceMap: false,
|
||||
devServer: {
|
||||
port: port,
|
||||
open: true,
|
||||
open: false, // 禁用自动打开浏览器
|
||||
overlay: {
|
||||
warnings: false,
|
||||
errors: true
|
||||
},
|
||||
// before: require('./mock/mock-server.js'), // 注释掉 mock 服务器
|
||||
// before: require('./mock/mock-server.js'), // 启用 mock 服务器
|
||||
watchOptions: {
|
||||
ignored: [
|
||||
'**/node_modules/**',
|
||||
@@ -56,12 +56,15 @@ module.exports = {
|
||||
},
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://localhost:9060', // 从环境变量获取后端服务器地址
|
||||
target: 'http://localhost:9060', // 本地后端服务器地址
|
||||
// target: 'https://api.huayang-star.com/', // 生产环境后端地址
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
'^/api': '/api' // 保持 /api 前缀
|
||||
},
|
||||
logLevel: 'debug' // 开发环境下显示代理日志
|
||||
logLevel: 'debug', // 开发环境下显示代理日志
|
||||
secure: false, // 如果是https,忽略证书验证
|
||||
timeout: 10000 // 设置超时时间
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user