fix(component): toast too many times when switch page mode (#2296)

This commit is contained in:
Himself65
2023-05-10 13:50:51 +08:00
committed by GitHub
parent e4f13ddae4
commit 19e20a6a20
5 changed files with 68 additions and 5 deletions
@@ -47,3 +47,15 @@ export function useOnTransformWorkspace() {
[setUser, transformWorkspace]
);
}
declare global {
// global Events
interface WindowEventMap {
'affine-workspace:transform': CustomEvent<{
from: WorkspaceFlavour;
to: WorkspaceFlavour;
oldId: string;
newId: string;
}>;
}
}