zhangxc 5 anni fa
parent
commit
7b5318fe55
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      src/js/graphMap.js

+ 2 - 0
src/js/graphMap.js

@@ -582,6 +582,8 @@ function updateTree(keyWord, txt) {
                 zTree.selectNode(zTree.getNodeByParam("name", keyWord));
                 const selectPId = $('.curSelectedNode').attr('id')
                 const selectId = selectPId.substring(0,selectPId.length-1) + 'ico'
+                $('.iconSelect').remove()
+
                 $('#'+selectId).append('<img class="iconSelect" src="./images/iconSelect.png">')
         // $.ajax({
         //     type: 'GET',