提交 23c4bb66 编写于 作者: View Design's avatar View Design

Update library.js

上级 1a955190
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册