vue.config.js
@@ -1,12 +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://183.196.93.178', //target:'http://127.0.0.1', //target:'http://183.196.93.178', target:'http://127.0.0.1', changeOrigin:true, pathRewrite:{ '/api':''