Skip to content

Commit a57d15d

Browse files
committed
fix: #1
1 parent b2d33dc commit a57d15d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

front/src/views/Nav.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ const updatedLink = ref<Link>({
104104
// 添加获取已存在分类的计算属性
105105
const existingCategories = computed(() => {
106106
const categories = new Set<string>()
107-
store.links.forEach((link: Link) => {
107+
const links = store.links || []
108+
links.forEach((link: Link) => {
108109
if (link.category) {
109110
categories.add(link.category)
110111
}

0 commit comments

Comments
 (0)