订阅处理调整
This commit is contained in:
parent
4b9120545a
commit
a31f47743a
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user