🎨 Manually optimize the data index to reduce space usage and improve performance https://github.com/siyuan-note/siyuan/issues/15663

This commit is contained in:
Daniel 2025-08-25 16:17:52 +08:00
parent 8ccb1e4143
commit 55541f62b0
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 1 additions and 9 deletions

View file

@ -386,7 +386,7 @@ export const transactionError = () => {
export const refreshFileTree = (cb?: () => void) => {
window.siyuan.storage[Constants.LOCAL_FILEPOSITION] = {};
setStorageVal(Constants.LOCAL_FILEPOSITION, window.siyuan.storage[Constants.LOCAL_FILEPOSITION]);
fetchPost("/api/filetree/refreshFiletree", {}, () => {
fetchPost("/api/system/rebuildDataIndex", {}, () => {
if (cb) {
cb();
}