From 836c8c17007532540a503197a433f5d8c9a0f198 Mon Sep 17 00:00:00 2001 From: quanyawei <401863037@qq.com> Date: Sun, 08 Oct 2023 17:34:36 +0800 Subject: [PATCH] fix:接口修改 --- vue.config.js | 23 +++++++++++++---------- 1 files changed, 13 insertions(+), 10 deletions(-) diff --git a/vue.config.js b/vue.config.js index 3cb4073..dcc1fcb 100644 --- a/vue.config.js +++ b/vue.config.js @@ -28,6 +28,9 @@ productionSourceMap: false, devServer: { port: port, + client: { + webSocketURL: 'ws://0.0.0.0:8080/ws' + }, open: false, overlay: { warnings: false, @@ -45,17 +48,17 @@ pathRewrite: { ['^' + process.env.VUE_APP_BASE_API]: '' } + }, + '/Req': { + // target: `http://192.168.1.129:8080/screen/login?account=chenxi&password=123456`, + // target: `http://localhost:${port}/mock`, + target: `http://192.168.55.1:8081/`, + secure: false, // ���������https������������������������������������true + changeOrigin: true, + pathRewrite: { + '^/Req': '' + } } - // '/Req': { - // // target: `http://192.168.1.129:8080/screen/login?account=chenxi&password=123456`, - // // target: `http://localhost:${port}/mock`, - // target: `http://121.43.179.139:8080`, - // secure: false, // ���������https������������������������������������true - // changeOrigin: true, - // pathRewrite: { - // '^/Req': '' - // } - // } }, after: require('./mock/mock-server.js'), historyApiFallback: { -- Gitblit v1.8.0