fix(测试跟踪): 模块树前端控制台报错问题
--bug=1033906 --user=宋昌昌 【测试跟踪】点击功能测试tab页,前端会有报错 https://www.tapd.cn/55049933/s/1447450
This commit is contained in:
parent
526b4a5623
commit
67bbac5d00
|
@ -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)
|
||||
}
|
||||
},
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
},
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue