From 747a2f6ecd502e74a4f096dfd3fcb0526552f9cd Mon Sep 17 00:00:00 2001 From: kimi <kimi42345@gmail.com> Date: 星期三, 22 一月 2020 16:21:40 +0800 Subject: [PATCH] config + role --- 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