From 1f6893d24ba87313d4114c68813073ead53b2e12 Mon Sep 17 00:00:00 2001 From: zhouwx <1175765986@qq.com> Date: 星期五, 30 八月 2024 09:26:22 +0800 Subject: [PATCH] 群发新通讯录懒加载 --- src/views/Admin/release.vue | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/Admin/release.vue b/src/views/Admin/release.vue index e01b309..5443cc8 100644 --- a/src/views/Admin/release.vue +++ b/src/views/Admin/release.vue @@ -83,6 +83,7 @@ import axios from "axios"; import Cookies from "js-cookie"; import {getUserInfo} from "@/util/storage"; +import {debounce} from "@/util/debounce"; const columns = [{ title: '序号', dataIndex: 'index', @@ -200,7 +201,7 @@ t.getData() }, methods: { - async getData(){ + getData: debounce(async function(){ const t = this const res = await getPublishRecord(this.search) if(res.data.code == 100){ @@ -209,7 +210,7 @@ }else{ this.$message.error(res.data.msg) } - }, + },1000), openList(id){ const t = this -- Gitblit v1.9.2