代码调整
This commit is contained in:
parent
06850eb38a
commit
0ca8662b0b
@ -182,6 +182,9 @@ export const layerList = [
|
|||||||
export function initLineScene(lineApp: IGraphicApp, sceneName: string) {
|
export function initLineScene(lineApp: IGraphicApp, sceneName: string) {
|
||||||
const options: GraphicAppOptions = {
|
const options: GraphicAppOptions = {
|
||||||
dataLoader: loadLineDatas,
|
dataLoader: loadLineDatas,
|
||||||
|
};
|
||||||
|
const lineScene = lineApp.initScene(sceneName, options);
|
||||||
|
lineScene.setOptions({
|
||||||
mouseToolOptions: {
|
mouseToolOptions: {
|
||||||
boxSelect: false,
|
boxSelect: false,
|
||||||
viewportDrag: true,
|
viewportDrag: true,
|
||||||
@ -197,8 +200,7 @@ export function initLineScene(lineApp: IGraphicApp, sceneName: string) {
|
|||||||
Section.Type,
|
Section.Type,
|
||||||
Transponder.Type,
|
Transponder.Type,
|
||||||
],
|
],
|
||||||
};
|
});
|
||||||
const lineScene = lineApp.initScene(sceneName, options);
|
|
||||||
const categoryType = useLineStore().categoryType;
|
const categoryType = useLineStore().categoryType;
|
||||||
if (!categoryType) {
|
if (!categoryType) {
|
||||||
throw new Error('未获取到厂商信息');
|
throw new Error('未获取到厂商信息');
|
||||||
|
Loading…
Reference in New Issue
Block a user