fix(测试跟踪): 模块树前端控制台报错问题

--bug=1033906 --user=宋昌昌 【测试跟踪】点击功能测试tab页,前端会有报错 https://www.tapd.cn/55049933/s/1447450
This commit is contained in:
song-cc-rock 2023-12-22 14:23:53 +08:00 committed by 刘瑞斌
parent 526b4a5623
commit 67bbac5d00
3 changed files with 3 additions and 3 deletions

View File

@ -247,7 +247,7 @@ export default {
}
},
justSetCurrentKey() {
if (this.$refs.nodeTree) {
if (this.$refs.nodeTree && this.currentNode.data) {
this.$refs.nodeTree.justSetCurrentKey(this.currentNode.data.id)
}
},

View File

@ -132,7 +132,7 @@ export default {
this.$emit("nodeSelectEvent", node, node.data.id === 'root' ? [] : nodeIds, pNodes);
},
justSetCurrentKey() {
if (this.$refs.nodeTree) {
if (this.$refs.nodeTree && this.currentNode.data) {
this.$refs.nodeTree.justSetCurrentKey(this.currentNode.data.id)
}
},

View File

@ -132,7 +132,7 @@ export default {
this.$emit("nodeSelectEvent", node, node.data.id === 'root' ? [] : nodeIds, pNodes);
},
justSetCurrentKey() {
if (this.$refs.nodeTree) {
if (this.$refs.nodeTree && this.currentNode.data) {
this.$refs.nodeTree.justSetCurrentKey(this.currentNode.data.id)
}
},