mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-11 15:12:33 +01:00
♻️ rm hasContext
This commit is contained in:
parent
e40bc18d86
commit
d2a6c03d52
27 changed files with 31 additions and 92 deletions
|
|
@ -114,11 +114,11 @@ export const initFramework = () => {
|
|||
const localDoc = JSON.parse(window.localStorage.getItem(Constants.LOCAL_DOCINFO) || '{"id": ""}');
|
||||
fetchPost("/api/block/checkBlockExist", {id: localDoc.id}, existResponse => {
|
||||
if (existResponse.data) {
|
||||
openMobileFileById(localDoc.id, localDoc.hasContext, localDoc.action);
|
||||
openMobileFileById(localDoc.id, localDoc.action);
|
||||
} else {
|
||||
fetchPost("/api/block/getRecentUpdatedBlocks", {}, (response) => {
|
||||
if (response.data.length !== 0) {
|
||||
openMobileFileById(response.data[0].id, true);
|
||||
openMobileFileById(response.data[0].id);
|
||||
} else {
|
||||
setEmpty();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue