chore: bump version to 0.3.20 + metona-toast 迁移至 @metona-team 私有源

This commit is contained in:
2026-07-23 21:42:14 +08:00
parent 56bd3a46d7
commit 983c52b0e4
16 changed files with 141 additions and 78 deletions
+2 -2
View File
@@ -175,12 +175,12 @@ export function MemoryViewer(): React.JSX.Element {
const res = await window.metona.memory.delete(type, id);
if (!res.success) {
// 用户主动操作失败应用 toast(与项目惯例一致),不污染加载/搜索的 Alert
import('metona-toast').then((mod) => mod.default.error(res.error ?? '删除失败')).catch(() => {});
import('@metona-team/metona-toast').then((mod) => mod.default.error(res.error ?? '删除失败')).catch(() => {});
return;
}
await loadMemories();
} catch (err) {
import('metona-toast').then((mod) => mod.default.error((err as Error).message ?? '删除失败')).catch(() => {});
import('@metona-team/metona-toast').then((mod) => mod.default.error((err as Error).message ?? '删除失败')).catch(() => {});
}
};