fix(web): allow workbench without projects

This commit is contained in:
2026-07-24 10:33:46 +08:00
parent 9900235eaa
commit fd8a2110a1
4 changed files with 20 additions and 15 deletions

View File

@@ -452,9 +452,11 @@ export function WorkspaceExplorePage({
onClick={() => void updateSelected({ status: selected.status, starred: !selected.starred })}
/>
<Button
aria-label={`沉淀到项目${activeProjectName}`}
aria-label={activeProjectName ? `沉淀到项目${activeProjectName}` : '请先选择项目'}
title={activeProjectName ? undefined : '请先选择项目'}
type="text"
icon={<IconBook />}
disabled={!activeProjectID}
loading={depositingItemID === selected.id}
onClick={() => void depositSelected()}
/>