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