Timothy J. Baek 7 月之前
父节点
当前提交
79cb9383d9
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      src/lib/components/layout/Sidebar.svelte

+ 2 - 4
src/lib/components/layout/Sidebar.svelte

@@ -243,11 +243,9 @@
 	const tagEventHandler = async (type, tagName, chatId) => {
 		console.log(type, tagName, chatId);
 		if (type === 'delete') {
-			currentChatPage.set(1);
-			await chats.set(await getChatListBySearchText(localStorage.token, search, $currentChatPage));
+			initChatList();
 		} else if (type === 'add') {
-			currentChatPage.set(1);
-			await chats.set(await getChatListBySearchText(localStorage.token, search, $currentChatPage));
+			initChatList();
 		}
 	};