From 5d9fed5a3c96c78f5e61ab569faf8938c737115b Mon Sep 17 00:00:00 2001 From: hakadao Date: Fri, 7 Jun 2024 01:48:19 +0800 Subject: [PATCH] fix(WatchLater): display nothing after clearing watched items (#817) close #817 --- src/contentScripts/views/WatchLater/WatchLater.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/contentScripts/views/WatchLater/WatchLater.vue b/src/contentScripts/views/WatchLater/WatchLater.vue index 959d01d7..631fed09 100644 --- a/src/contentScripts/views/WatchLater/WatchLater.vue +++ b/src/contentScripts/views/WatchLater/WatchLater.vue @@ -106,7 +106,7 @@ function handleClearAllWatchLater() { csrf: getCSRF(), }).then((res) => { if (res.code === 0) - getAllWatchLaterList() + initData() }).finally(() => { isLoading.value = false }) @@ -124,7 +124,7 @@ function handleRemoveWatchedVideos() { }) .then((res) => { if (res.code === 0) - getAllWatchLaterList() + initData() }) } }