feat: 菜单搜索新增搜索历史和收藏功能 (#901)

* feat: 菜单搜索新增搜索历史和收藏功能
This commit is contained in:
zepeng
2024-03-02 01:08:52 +08:00
committed by GitHub
parent b5645b19e1
commit 16122aec17
9 changed files with 473 additions and 60 deletions

View File

@@ -85,6 +85,22 @@ class StorageProxy implements ProxyStorage {
});
});
}
/**
* @description 获取数据仓库中所有的key
*/
public async keys() {
return new Promise<string[]>((resolve, reject) => {
this.storage
.keys()
.then(keys => {
resolve(keys);
})
.catch(err => {
reject(err);
});
});
}
}
/**