保留画布后台查询期间的本地编辑 #44
@ -5196,6 +5196,7 @@ export default function CanvasEditorLegacyPage({
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
const beforeRead = useCanvasStore.getState();
|
||||||
const revisionResponse = await fetch(`/api/canvas/${id}/revision`, {
|
const revisionResponse = await fetch(`/api/canvas/${id}/revision`, {
|
||||||
cache: "no-store",
|
cache: "no-store",
|
||||||
});
|
});
|
||||||
@ -5215,7 +5216,6 @@ export default function CanvasEditorLegacyPage({
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const beforeRead = useCanvasStore.getState();
|
|
||||||
const result = await canvasService.getProject(id);
|
const result = await canvasService.getProject(id);
|
||||||
const current = useCanvasStore.getState();
|
const current = useCanvasStore.getState();
|
||||||
if (
|
if (
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user