fix: use const define variable

This commit is contained in:
rongjie.song 2023-10-07 17:35:31 +08:00
parent 2822cd23a5
commit c8ba38cc8e

View File

@ -75,7 +75,7 @@ export default {
},
clearActiveState(e: any) {
// avoid clear state frequently, it costs a lot since all the items' states on the graph need to be cleared
var shouldClearStatusOnSecond = this.shouldClearStatusOnSecond;
const shouldClearStatusOnSecond = this.shouldClearStatusOnSecond;
if (shouldClearStatusOnSecond) {
clickNodeId = null;
}