修改测试问题
This commit is contained in:
@@ -1,13 +1,6 @@
|
||||
<template>
|
||||
<Tree
|
||||
ref="treRef"
|
||||
:width="width"
|
||||
:data="tree"
|
||||
default-expand-all
|
||||
@changePointType="changePointType"
|
||||
@changeTreeType="loadTree"
|
||||
:height="height"
|
||||
/>
|
||||
<Tree ref="treRef" :width="width" :data="tree" default-expand-all @changePointType="changePointType"
|
||||
@changeTreeType="loadTree" :height="height" />
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
@@ -56,10 +49,10 @@ async function selectInitialNode(type: string | undefined, leaves: LineTreeLeave
|
||||
type === '2'
|
||||
? [{ refKey: 'treeRef4', list: leaves.engineering, level: 3 }]
|
||||
: [
|
||||
{ refKey: 'treeRef1', list: leaves.govern, level: 2 },
|
||||
{ refKey: 'treeRef2', list: leaves.portable, level: 2 },
|
||||
{ refKey: 'treeRef3', list: leaves.monitor, level: 2 }
|
||||
]
|
||||
{ refKey: 'treeRef1', list: leaves.govern, level: 2 },
|
||||
{ refKey: 'treeRef2', list: leaves.portable, level: 2 },
|
||||
{ refKey: 'treeRef3', list: leaves.monitor, level: 2 }
|
||||
]
|
||||
|
||||
for (const { refKey, list, level } of candidates) {
|
||||
const node = list[0]
|
||||
@@ -96,9 +89,9 @@ function bootstrap() {
|
||||
loadTree('2')
|
||||
})
|
||||
.catch(() => loadTree())
|
||||
} else {
|
||||
|
||||
|
||||
} else {
|
||||
|
||||
|
||||
loadTree('2')
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user