Skip to content

Commit

Permalink
fix: 修复了默认分类可被用户删除的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ximu3 committed Sep 11, 2024
1 parent b360e14 commit 10b0cbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/src/components/Library.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function Library() {
{
label: '删除分类',
onClick: () => {
if (categoryId === '0') {
if (categoryId === 0) {
setAlert('无法删除默认分类!');
setTimeout(() => {
setAlert('');
Expand Down

0 comments on commit 10b0cbc

Please sign in to comment.