订阅处理调整

This commit is contained in:
fan 2023-09-01 10:37:57 +08:00
parent 4b9120545a
commit a31f47743a

View File

@ -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,