From 8b22a384ff196907e51304bc1bf4dadf6265d13c Mon Sep 17 00:00:00 2001 From: fanluyan <754122931@qq.com> Date: Thu, 8 Jun 2023 13:55:36 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=8B=8D=E7=85=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/realTimeMonitor/index.vue | 4 ++-- vue.config.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/realTimeMonitor/index.vue b/src/views/realTimeMonitor/index.vue index ff02ff3..dd69570 100644 --- a/src/views/realTimeMonitor/index.vue +++ b/src/views/realTimeMonitor/index.vue @@ -581,7 +581,7 @@ export default { getLatestPhotoJoggle({ captureType: 0, channel: command, - cmdid: this.cmdid, + // cmdid: this.cmdid, termId: this.newTermId, preset: 255, }) @@ -612,7 +612,7 @@ export default { getLatestPhotoJoggle({ captureType: 1, channel: command, - cmdid: this.cmdid, + //cmdid: this.cmdid, termId: this.newTermId, preset: 255, }) diff --git a/vue.config.js b/vue.config.js index 3e6b409..51f9db9 100644 --- a/vue.config.js +++ b/vue.config.js @@ -28,11 +28,11 @@ module.exports = defineConfig({ proxy: { "/api": { //表示拦截以/api开头的请求路径 - //target: "http://47.96.238.157:8093", //阿里云服务器环境 - target: "http://180.166.218.222:40080", //dell + target: "http://47.96.238.157:8093", //阿里云服务器环境 + // target: "http://180.166.218.222:40080", //dell changOrigin: true, //是否开启跨域 pathRewrite: { - "^/api": "/api", //重写api,把api变成空字符,因为我们真正请求的路径是没有api的 + "^/api": "", //重写api,把api变成空字符,因为我们真正请求的路径是没有api的 }, }, },