测试git机器人
This commit is contained in:
@@ -48,7 +48,7 @@ const $arr2tree = (list, config = {}) => {
|
|||||||
if (!!pid && ids.indexOf(pid) > -1) {
|
if (!!pid && ids.indexOf(pid) > -1) {
|
||||||
if (!itemMap[pid]) {
|
if (!itemMap[pid]) {
|
||||||
itemMap[pid] = {
|
itemMap[pid] = {
|
||||||
children: [],
|
children: []
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
itemMap[pid].children.push(treeItem)
|
itemMap[pid].children.push(treeItem)
|
||||||
@@ -130,6 +130,7 @@ export const $copy = any => {
|
|||||||
return JSON.parse(JSON.stringify(any))
|
return JSON.parse(JSON.stringify(any))
|
||||||
} else return any
|
} else return any
|
||||||
}
|
}
|
||||||
|
|
||||||
let debounceWait = null
|
let debounceWait = null
|
||||||
export const $debounce = (fn, wait) => {
|
export const $debounce = (fn, wait) => {
|
||||||
if (debounceWait !== null) clearTimeout(debounceWait);
|
if (debounceWait !== null) clearTimeout(debounceWait);
|
||||||
|
|||||||
Reference in New Issue
Block a user