代码调整

This commit is contained in:
dong 2023-10-20 15:53:58 +08:00
parent 06850eb38a
commit 0ca8662b0b

View File

@ -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('未获取到厂商信息');