Dark模式 oss存储
Deploy dev / deploy (push) Successful in 1m16s

This commit is contained in:
Azmat@qq.com
2026-09-24 18:06:00 +08:00
parent ceb5163881
commit 5dbb240b59
46 changed files with 3491 additions and 350 deletions
@@ -97,8 +97,6 @@ export function AssetLibraryModal({ open, onClose, onPick, notify }: {
return () => window.clearInterval(timer);
}, [open, activeGroup, assets]);
if (!open) return null;
const createGroup = async () => {
const name = newName.trim();
if (!name || creatingGroup) return;
@@ -160,6 +158,9 @@ export function AssetLibraryModal({ open, onClose, onPick, notify }: {
}
};
// 所有 Hook 必须在关闭态也保持同一调用顺序;不能在此之前提前 return。
if (!open) return null;
const startRenameAsset = (item: FreeAssetItem) => {
setConfirmDeleteAssetId(null);
setConfirmDeleteGroupId(null);