psl切换地图数据不更新调整

This commit is contained in:
joylink_fanyuhong 2024-03-27 15:48:12 +08:00
parent f0db7a70ab
commit 9c95c229e5

View File

@ -246,7 +246,7 @@ watch(
if (!container) return; if (!container) return;
const pslScene = pslStore.getPslScene(); const pslScene = pslStore.getPslScene();
pslScene?.bindDom(container); pslScene?.bindDom(container);
await pslScene?.reload(); await pslScene?.forceReload();
if (pslScene) { if (pslScene) {
pslCanvasWidth.value = pslScene.canvas.width; pslCanvasWidth.value = pslScene.canvas.width;
pslCanvasHeight.value = pslScene.canvas.height; pslCanvasHeight.value = pslScene.canvas.height;