fix:issues-2
This commit is contained in:
parent
160fa38c52
commit
afb9886756
@ -45,8 +45,10 @@ export async function cacheBookmarkData() {
|
|||||||
* @param {*} path path
|
* @param {*} path path
|
||||||
*/
|
*/
|
||||||
export function getBookmarkList(path) {
|
export function getBookmarkList(path) {
|
||||||
let data = window[TREE_LIST_KEY][path];
|
if (window[TREE_LIST_KEY][path] === undefined) {
|
||||||
return data ? data : [];
|
window[TREE_LIST_KEY][path] = [];
|
||||||
|
}
|
||||||
|
return window[TREE_LIST_KEY][path];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -83,6 +85,7 @@ export async function updateCurrentChangeTime() {
|
|||||||
* @param {*} node
|
* @param {*} node
|
||||||
*/
|
*/
|
||||||
export async function addNode(currentNode, node) {
|
export async function addNode(currentNode, node) {
|
||||||
|
debugger;
|
||||||
let treeDataMap = window[TREE_LIST_KEY];
|
let treeDataMap = window[TREE_LIST_KEY];
|
||||||
if (currentNode) {
|
if (currentNode) {
|
||||||
let key = currentNode.path + "." + currentNode.bookmarkId;
|
let key = currentNode.path + "." + currentNode.bookmarkId;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user