|
|
@@ -1,3 +1,11 @@
|
|
|
+/*
|
|
|
+ * @Author: zhangsijie 1935241421@qq.com
|
|
|
+ * @Date: 2023-06-05 08:51:07
|
|
|
+ * @LastEditors: zhangsijie 1935241421@qq.com
|
|
|
+ * @LastEditTime: 2023-06-07 09:15:15
|
|
|
+ * @FilePath: \project\minggao_vue\MingGao_vue\minggao\config\index.js
|
|
|
+ * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
|
+ */
|
|
|
'use strict';
|
|
|
// Template version: 1.3.1
|
|
|
// see http://vuejs-templates.github.io/webpack for documentation.
|
|
|
@@ -12,10 +20,11 @@ module.exports = {
|
|
|
proxyTable: {
|
|
|
'/api': {
|
|
|
ws: false,
|
|
|
- target: 'http://192.168.1.52:12345', //翟毅飞
|
|
|
- // target: 'https://www.yhswjc.com', //线上
|
|
|
+ // target: 'http://192.168.1.52:12345', //翟毅飞
|
|
|
+ target: 'https://www.yhswjc.com', //线上
|
|
|
// target: 'http://192.168.1.77:12345', //曹世祥
|
|
|
// target: 'http://114.115.147.140:12345',
|
|
|
+ // target: 'http://192.168.1.168:8000', //闫自林本地服务
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: {
|
|
|
'^/api': '/api' //重写接口
|
|
|
@@ -25,7 +34,7 @@ module.exports = {
|
|
|
|
|
|
// Various Dev Server settings
|
|
|
// host: 'localhost', // can be overwritten by process.env.HOST
|
|
|
- host: '192.168.1.106', // can be overwritten by process.env.HOST
|
|
|
+ host: '0.0.0.0', // can be overwritten by process.env.HOST
|
|
|
port: 8888, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
|
|
|
autoOpenBrowser: false,
|
|
|
errorOverlay: true,
|