819527061@qq.com
2024-01-04 c09dcac4b1f1a5c929943dd163fe72132b51ff41
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':''
                    '/':''
                }
            }
        }
    }
}
}