diff --git a/src/drawApp/lineScene.ts b/src/drawApp/lineScene.ts index 613a315..d28efb1 100644 --- a/src/drawApp/lineScene.ts +++ b/src/drawApp/lineScene.ts @@ -182,6 +182,9 @@ export const layerList = [ export function initLineScene(lineApp: IGraphicApp, sceneName: string) { const options: GraphicAppOptions = { dataLoader: loadLineDatas, + }; + const lineScene = lineApp.initScene(sceneName, options); + lineScene.setOptions({ mouseToolOptions: { boxSelect: false, viewportDrag: true, @@ -197,8 +200,7 @@ export function initLineScene(lineApp: IGraphicApp, sceneName: string) { Section.Type, Transponder.Type, ], - }; - const lineScene = lineApp.initScene(sceneName, options); + }); const categoryType = useLineStore().categoryType; if (!categoryType) { throw new Error('未获取到厂商信息');