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':'' '/':'' } } } } } }