智慧农业后台管理页面
guanqb
2022-08-31 b8ef6f8946de7dc00d9711eb6ba9d1aefe24cde1
vue.config.js
@@ -4,7 +4,7 @@
module.exports = {
    //路径前缀
    publicPath: "/",
    publicPath: "/zhny-web",
    lintOnSave: true,
    productionSourceMap: false,
    chainWebpack: (config) => {
@@ -39,13 +39,15 @@
    },
    //开发模式反向代理配置,生产模式请使用Nginx部署并配置反向代理
    devServer: {
        // 本地配置host生效
        disableHostCheck:true,
        port: 1888,
        proxy: {
            '/api': {
                //本地服务接口地址
                // target: 'http://192.168.0.126:89',
                target: 'http://192.168.0.207:89',
                //远程演示服务地址,可用于直接启动项目
                target: 'http://182.106.212.58:8013/api',
                // target: 'http://182.106.212.58:8013/api',
                ws: true,
                pathRewrite: {
                    '^/api': '/'
@@ -53,4 +55,4 @@
            }
        }
    }
}
}