修改测试问题
This commit is contained in:
@@ -140,7 +140,7 @@ const info = (type?: string) => {
|
||||
if (type == '2') {
|
||||
//初始化选中
|
||||
|
||||
treRef.value?.treeRef4.setCurrentKey(arr4[0].id)
|
||||
treRef.value?.treeRef4.setCurrentKey(arr4[0]?.id)
|
||||
// 注册父组件事件
|
||||
emit('init', {
|
||||
level: 2,
|
||||
@@ -150,7 +150,7 @@ const info = (type?: string) => {
|
||||
return
|
||||
}
|
||||
if (arr.length > 0) {
|
||||
treRef.value.treeRef1.setCurrentKey(arr[0].id)
|
||||
treRef.value.treeRef1.setCurrentKey(arr[0]?.id)
|
||||
// 注册父组件事件
|
||||
emit('init', {
|
||||
level: 2,
|
||||
@@ -158,7 +158,7 @@ const info = (type?: string) => {
|
||||
})
|
||||
return
|
||||
} else if (arr2.length > 0) {
|
||||
treRef.value.treeRef2.setCurrentKey(arr2[0].id)
|
||||
treRef.value.treeRef2.setCurrentKey(arr2[0]?.id)
|
||||
// 注册父组件事件
|
||||
emit('init', {
|
||||
level: 2,
|
||||
|
||||
Reference in New Issue
Block a user