From 24dc0ae43257275206ac3a8758074117de1ad0fa Mon Sep 17 00:00:00 2001 From: Helluin <1617752537@qq.com> Date: Sat, 9 Dec 2023 12:53:14 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=BB=A3=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/vue.config.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/config/vue.config.js diff --git a/src/config/vue.config.js b/src/config/vue.config.js new file mode 100644 index 00000000..9d8be2c6 --- /dev/null +++ b/src/config/vue.config.js @@ -0,0 +1,14 @@ +module.exports = { + devServer: { + proxy: { + // 配置代理 + '/api': { + target: "https://elm.cangdu.org", + secure: true, + changeOrigin: true, + ws: true, + pathRewrite: { '^/api': '', } + } + } + } +};