remove jquery

This commit is contained in:
ayou
2018-02-06 21:51:45 +08:00
parent bbbe58a4e0
commit 6812b1eb30
5 changed files with 41 additions and 36 deletions

View File

@@ -163,9 +163,9 @@
},
getNewTree: function () {
const vm = this
var vm = this
function _dfs (oldNode) {
let newNode = {}
var newNode = {}
for (var k in oldNode) {
if (k !== 'children' && k !== 'parent') {
@@ -175,7 +175,7 @@
if (oldNode.children && oldNode.children.length > 0) {
newNode.children = []
for (let i = 0, len = oldNode.children.length; i < len; i++) {
for (var i = 0, len = oldNode.children.length; i < len; i++) {
newNode.children.push(_dfs(oldNode.children[i]))
}
}