819527061@qq.com
2023-09-15 d9c785f24c5a8cba5cb4cdb2f51dc5fcaf2c533c
vue.config.js
@@ -1,16 +1,28 @@
var path = require("path")
module.exports = {
    baseUrl: './',
    configureWebpack: {
        resolve: {
            alias: {
                '@': path.join(__dirname, 'src')
            }
        }
    },
    assetsDir: 'static',
    productionSourceMap: false,
    devServer: {
        sockHost: 'localhost',
        port: 8082,
        disableHostCheck: true,
        proxy: {
            '/api':{
                target:'http://192.168.0.146',
            '/':{
                //target:'http://183.196.93.178',
                target:'http://127.0.0.1:8089',
                changeOrigin:true,
                pathRewrite:{
                    '/api':''
                    '/':''
                }
            }
        }
    }
}
}