fix: 修复换火山账号导致素材库操作失败问题
This commit is contained in:
@@ -431,11 +431,12 @@ export function ToastLike({ notice }: { notice: NonNullable<Notice> }) {
|
||||
return () => cancelAnimationFrame(raf);
|
||||
}, []);
|
||||
const Icon = notice.type === "error" ? AlertCircle : notice.type === "info" ? Info : Check;
|
||||
return (
|
||||
return createPortal(
|
||||
<div className={`toast${show ? " show" : ""}`} role="status" aria-live="polite">
|
||||
<div className="ic-t"><Icon size={13} /></div>
|
||||
<div className="txt">{notice.text}<span className="mono">[ {notice.type.toUpperCase()} ]</span></div>
|
||||
</div>
|
||||
</div>,
|
||||
document.body,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user