From 261963ad8dbd9525b3d15b8acf144c39a926f9eb Mon Sep 17 00:00:00 2001 From: duan Date: Wed, 31 Aug 2022 14:22:06 +0800 Subject: [PATCH] =?UTF-8?q?feat(src/views/reagent/client):=20=E5=BD=93?= =?UTF-8?q?=E7=A6=BB=E5=BC=80=E6=97=B6=E6=9B=B4=E6=96=B0=E5=85=A8=E5=B1=80?= =?UTF-8?q?=E6=9F=9C=E4=BD=93=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/reagent/client/index.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/views/reagent/client/index.vue b/src/views/reagent/client/index.vue index 6854a94..982c8ce 100644 --- a/src/views/reagent/client/index.vue +++ b/src/views/reagent/client/index.vue @@ -279,6 +279,7 @@ import { get_drawer_power, user_ban_relieve, set_drawer_power, user_ban_list, user_ban_confirm, del, client_empty } from '@/api/reagent/client' +import { client_list } from '@/api/common' export default { name: 'Client', @@ -370,6 +371,14 @@ export default { created() { this.getList() }, + destroyed() { + // 更新client数据供后续使用 + client_list().then( + res => { + this.$store.commit('app/SET_COPTS', res.data.data_list) + } + ) + }, methods: { handleDisUser() { if (this.multipleUserSelection.length !== 1) {