From 4800d5fa99f82715ac7f4d047cdc79d688a7632a Mon Sep 17 00:00:00 2001 From: rd <1344903914@qq.com> Date: Mon, 21 Jul 2025 10:45:07 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../property-marketing/media-account/account-manage/index.vue | 4 ++-- .../property-marketing/put-account/account-manage/index.vue | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/views/property-marketing/media-account/account-manage/index.vue b/src/views/property-marketing/media-account/account-manage/index.vue index d11ef74..a070d67 100644 --- a/src/views/property-marketing/media-account/account-manage/index.vue +++ b/src/views/property-marketing/media-account/account-manage/index.vue @@ -350,7 +350,7 @@ const getSyncTaskStatus = async (id, notificationId) => { if (data?.status !== 0) { clearQueryTaskTimer(); notificationId && Notification.remove(notificationId); - showImportResultNotification(data) + showImportResultNotification(data); getData(); } } @@ -358,7 +358,7 @@ const getSyncTaskStatus = async (id, notificationId) => { const handleGetImportTaskStatus = (id, notificationId) => { clearQueryTaskTimer(); getSyncTaskStatus(id, notificationId); - queryTaskTimer = setInterval(getSyncTaskStatus, 3000); + queryTaskTimer = setInterval(() => getSyncTaskStatus(id, notificationId), 3000); }; const clearSyncDataTimer = () => { if (syncDataTimer) { diff --git a/src/views/property-marketing/put-account/account-manage/index.vue b/src/views/property-marketing/put-account/account-manage/index.vue index 3ec14ef..e9aa915 100644 --- a/src/views/property-marketing/put-account/account-manage/index.vue +++ b/src/views/property-marketing/put-account/account-manage/index.vue @@ -115,7 +115,6 @@ const addAccountModalRef = ref(null); const deleteAccountRef = ref(null); let queryTaskTimer = null; - const pageInfo = ref({ page: 1, pageSize: 20, @@ -272,7 +271,7 @@ const getSyncTaskStatus = async (id, notificationId) => { const handleGetImportTaskStatus = (id, notificationId) => { clearQueryTaskTimer(); getSyncTaskStatus(id, notificationId); - queryTaskTimer = setInterval(getSyncTaskStatus, 3000); + queryTaskTimer = setInterval(() => getSyncTaskStatus(id, notificationId), 3000); }; const clearQueryTaskTimer = () => { if (queryTaskTimer) {