diff --git a/vue.config.js b/vue.config.js index 3493047..edcabe0 100644 --- a/vue.config.js +++ b/vue.config.js @@ -56,7 +56,14 @@ module.exports = { pathRewrite: { ['^' + process.env.VUE_APP_BASE_API]: process.env.VUE_APP_BASE_API } - } + }, + ['/api/admin/other/contract']: { + target: 'http://192.168.60.100:9002', + changeOrigin: true, //配置跨域 + pathRewrite: { + ['^/api/admin/other/contract']: '/api/admin/other/contract' + } + }, } }, configureWebpack: {