From 23c4bb661ee4d490e26f9b6a1525546769200217 Mon Sep 17 00:00:00 2001 From: Aresn Date: Mon, 3 Jun 2024 13:59:39 +0800 Subject: [PATCH] Update library.js --- stores/library.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stores/library.js b/stores/library.js index b16ac8b..8d99b20 100644 --- a/stores/library.js +++ b/stores/library.js @@ -32,7 +32,7 @@ export const useLibraryStore = defineStore('library', () => { async function $getCollection () { const { data } = await useRequest('/v1/collection/list') - $collection.value = data.value.data + $collection.value = data && data.value && data.value.data || [] } return { $selectThreadId, -- GitLab