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) {