fix: 修两个 bug

1. ArticleRead.user_id 改 Integer(users.id 是 Integer,不是 BigInteger)
   alembic 0007 同样改 Integer
2. ArticleDetail.vue toggleRead 重复 catch 块导致 build 失败
   (edit 时新加的 catch 跟 toggleStar 残留的 catch 撞了)
This commit is contained in:
xiaji
2026-06-13 21:10:22 +08:00
parent 6c71ab2e79
commit 4ca05b8b7d
3 changed files with 5 additions and 7 deletions

View File

@@ -73,9 +73,6 @@ async function toggleRead() {
article.value.is_read = wasRead
message.error(e?.response?.data?.title || '操作失败')
}
} catch (e: any) {
message.error(e?.response?.data?.title || '操作失败')
}
}
function fmtTime(s?: string | null) {