From 33ddf707b56c305d131e59a2c8a1833ac7ba627d Mon Sep 17 00:00:00 2001 From: lawrencehj <65707521+lawrencehj@users.noreply.github.com> Date: 星期三, 29 十二月 2021 18:08:33 +0800 Subject: [PATCH] 界面删除设备后同时删除Redis的对应条目,避免其它设备用同样IP登录时出现信息错误 --- web_src/src/components/ParentPlatformList.vue | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/web_src/src/components/ParentPlatformList.vue b/web_src/src/components/ParentPlatformList.vue index 47ffe2d..6960c6a 100644 --- a/web_src/src/components/ParentPlatformList.vue +++ b/web_src/src/components/ParentPlatformList.vue @@ -138,9 +138,7 @@ }); }, chooseChannel: function(platform) { - this.$refs.chooseChannelDialog.openDialog(platform.serverGBId, ()=>{ - this.initData() - }) + this.$refs.chooseChannelDialog.openDialog(platform.serverGBId, this.initData) }, initData: function() { this.getPlatformList(); @@ -158,7 +156,7 @@ this.$axios({ method: 'get', - url:`/api/platform/query/${that.count}/${that.currentPage}` + url:`/api/platform/query/${that.count}/${that.currentPage}` }).then(function (res) { that.total = res.data.total; that.platformList = res.data.list; -- Gitblit v1.8.0