* [misc] show check doc data after upgrade.

This commit is contained in:
sunhao
2024-12-18 13:04:10 +08:00
committed by 丁永亮
parent cd2e0b9954
commit cbf8a9bd9f
2 changed files with 10 additions and 0 deletions
+8
View File
@@ -1420,3 +1420,11 @@ function canAddDivider($item)
if($item.is(':last-child')) return false;
return true;
}
/* Check docs data for last upgrade. */
const lastUpgrade = zui.store.get('lastUpgrade');
if(lastUpgrade)
{
zui.DocApp.tryMigrateDocs();
zui.store.remove('lastUpgrade');
}
+2
View File
@@ -4,6 +4,8 @@ $(function()
finishedShow();
if(needProcess.updateFile != undefined) updateFile($.createLink('upgrade', 'ajaxUpdateFile'));
zui.store.set('lastUpgrade', {time: Date.now()});
});
/**