kongdeqiang
2023-06-06 6f1282471e5fd213443ac1f6dabfd3ef8b08c5c3
vue.config.js
@@ -1,11 +1,22 @@
var path = require("path")
module.exports = {
    baseUrl: './',
    configureWebpack: {
        resolve: {
            alias: {
                '@': path.join(__dirname, 'src')
            }
        }
    },
    assetsDir: 'static',
    productionSourceMap: false,
    devServer: {
        sockHost: 'localhost',
        disableHostCheck: true,
        proxy: {
            '/api':{
                target:'http://192.168.0.146',
                target:'http://183.196.93.178',
                //target:'http://127.0.0.1',
                changeOrigin:true,
                pathRewrite:{
                    '/api':''
@@ -13,4 +24,4 @@
            }
        }
    }
}
}