Skip to content

Commit

Permalink
fix: 修复版权信息编辑错误的绑定值。
Browse files Browse the repository at this point in the history
  • Loading branch information
besscroft committed Nov 12, 2024
1 parent 79cd969 commit 664a12e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/admin/copyright/CopyrightEditSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ export default function CopyrightEditSheet(props : Readonly<HandleProps>) {
</div>
</div>
<Switch
checked={copyright?.default === 0}
onCheckedChange={(value) => setCopyrightEditData({...copyright, default: value ? 0 : 1})}
checked={copyright?.show === 0}
onCheckedChange={(value) => setCopyrightEditData({...copyright, show: value ? 0 : 1})}
/>
</div>
<div className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-sm">
Expand All @@ -191,8 +191,8 @@ export default function CopyrightEditSheet(props : Readonly<HandleProps>) {
</div>
</div>
<Switch
checked={copyright?.show === 0}
onCheckedChange={(value) => setCopyrightEditData({...copyright, show: value ? 0 : 1})}
checked={copyright?.default === 0}
onCheckedChange={(value) => setCopyrightEditData({...copyright, default: value ? 0 : 1})}
/>
</div>
<Button
Expand Down

0 comments on commit 664a12e

Please sign in to comment.