fix: 完善商品—模特库-视频项目-自由创作等删除先进垃圾桶及可恢复等流程
This commit is contained in:
@@ -833,7 +833,7 @@ export function App() {
|
||||
</div>
|
||||
);
|
||||
case "models":
|
||||
return <ModelsPage />;
|
||||
return <ModelsPage onNotify={(type, text) => setNotice({ type, text })} />;
|
||||
case "library":
|
||||
return <LibraryPage onUpload={(formData) => action(() => api.uploadAsset(formData), "资产已上传")} onDelete={(id) => action(() => api.deleteAsset(id), "资产已删除")} />;
|
||||
case "trash":
|
||||
@@ -842,6 +842,7 @@ export function App() {
|
||||
navigate={navigate}
|
||||
onRestore={(id) => action(() => api.restoreProduct(id), "已恢复到商品库")}
|
||||
onPurge={(id) => action(() => api.purgeProduct(id), "已彻底删除")}
|
||||
onChanged={() => { void loadData(); }}
|
||||
/>
|
||||
);
|
||||
case "account":
|
||||
|
||||
Reference in New Issue
Block a user