From a7c8080195f6b936b75a6a4129805e0a6766968f Mon Sep 17 00:00:00 2001 From: zhangyanpeng <bob.zhang@highdatas.com> Date: 星期三, 22 一月 2020 16:17:26 +0800 Subject: [PATCH] Merge branch 'master' of http://highdatas.com:9000/r/~kimi/srs --- vue.config.js | 28 ++++++++++++++++------------ 1 files changed, 16 insertions(+), 12 deletions(-) diff --git a/vue.config.js b/vue.config.js index f6fa46d..1c66f9d 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,14 +1,18 @@ module.exports = { - publicPath: '/', - devServer: { - proxy: { - '/api/api': { - target: 'http://192.168.31.233:8090', - changeOrigin: true, - pathRewrite: { - '^/api/api': '' - } - } - } - } + // 淇敼鐨勯厤缃� + // 灏哹aseUrl: '/api',鏀逛负baseUrl: '/', + publicPath: '/', + devServer: { + port: 80, + proxy: { + '/api': { + target: '192.168.31.233:8090', + changeOrigin: true, + ws: true, + pathRewrite: { + '^/api': '' + } + } + } + } } \ No newline at end of file -- Gitblit v1.8.0