From a18d21c999076ad27d375e3126be92a2c7531502 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Wed, 20 Apr 2022 10:52:00 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=A0=B7=E5=BC=8F=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/store/index.js | 4 ++-- frontend/src/views/panel/index.vue | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/frontend/src/store/index.js b/frontend/src/store/index.js index b6cccadf26..dd84cf41e8 100644 --- a/frontend/src/store/index.js +++ b/frontend/src/store/index.js @@ -353,10 +353,10 @@ const data = { Object.keys(params).forEach(function(sourceInfo) { // 获取外部参数的值 sourceInfo 是外部参数名称 支持数组传入 let paramValue = params[sourceInfo] - const operator = 'eq' + let operator = 'in' if (paramValue && !Array.isArray(paramValue)) { paramValue = [paramValue] - operator = 'in' + operator = 'eq' } // 获取所有目标联动信息 const targetInfoList = trackInfo[sourceInfo] || [] diff --git a/frontend/src/views/panel/index.vue b/frontend/src/views/panel/index.vue index c7df8bfb77..9120dbd31e 100644 --- a/frontend/src/views/panel/index.vue +++ b/frontend/src/views/panel/index.vue @@ -2,7 +2,6 @@ - @@ -18,7 +17,7 @@ import PanelEdit from '@/views/panel/edit' export default { name: 'Panel', - components: { DeMainContainer, DeContainer, PanelMain, ChartEdit, PanelEdit }, + components: { DeMainContainer, DeContainer, PanelMain, PanelEdit }, data() { return { component: PanelMain, @@ -33,7 +32,6 @@ export default { }, watch: { $route(to, from) { - // 对路由变化作出响应... } }, mounted() {