From 3f619a4e52661892789496f98b4e166470d29264 Mon Sep 17 00:00:00 2001 From: zhangyanpeng <bob.zhang@highdatas.com> Date: 星期四, 23 一月 2020 15:12:53 +0800 Subject: [PATCH] 调整 --- vue.config.js | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/vue.config.js b/vue.config.js index 1c66f9d..a2cc403 100644 --- a/vue.config.js +++ b/vue.config.js @@ -3,14 +3,13 @@ // 灏哹aseUrl: '/api',鏀逛负baseUrl: '/', publicPath: '/', devServer: { - port: 80, proxy: { - '/api': { - target: '192.168.31.233:8090', + '/api/api': { + target: 'http://127.0.0.1:8090', changeOrigin: true, ws: true, pathRewrite: { - '^/api': '' + '^/api/api': '' } } } -- Gitblit v1.8.0