diff --git a/config/webpack.dev.config.js b/config/webpack.dev.config.js index 068d4f4..a1a2332 100644 --- a/config/webpack.dev.config.js +++ b/config/webpack.dev.config.js @@ -83,6 +83,12 @@ module.exports = function(env, argv) { }, stats: 'errors-only', // 开启报错提示 proxy: { + '/nccloud/resources/spr':{ + target: configJSON.proxy, + pathRewrite:{ + '^/nccloud/resources/spr':'/spr' + } + }, // 请求代理 '/nccloud': { target: configJSON.proxy,