From a31f47743a4b2f09bfa4ec55557acf9968907d6e Mon Sep 17 00:00:00 2001 From: fan Date: Fri, 1 Sep 2023 10:37:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E9=98=85=E5=A4=84=E7=90=86=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/drawApp/lineApp.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/drawApp/lineApp.ts b/src/drawApp/lineApp.ts index dedd96a..15ed696 100644 --- a/src/drawApp/lineApp.ts +++ b/src/drawApp/lineApp.ts @@ -232,17 +232,17 @@ export function initLineApp(): IGraphicApp { }; DefaultCanvasMenu.open(e.global); }); - handleEvent(lineApp); lineApp.on('postdataloaded', () => { ControlShowType(); + handleSubscribe(); }); return lineApp; } -function handleEvent(app: IGraphicApp) { - const route = useRoute(); +function handleSubscribe() { const lineStore = useLineStore(); const simulationId = lineStore.simulationId; + const app = lineStore.getLineApp(); app.enableWsMassaging({ engine: ClientEngine.Centrifugo,