mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 09:00:12 +01:00
This commit is contained in:
parent
6aee92f8d4
commit
d927e1ed9f
1 changed files with 8 additions and 8 deletions
|
|
@ -107,10 +107,10 @@ export const newFile = (optios: {
|
||||||
openFileById({
|
openFileById({
|
||||||
app: optios.app,
|
app: optios.app,
|
||||||
id: response.data,
|
id: response.data,
|
||||||
action: [Constants.CB_GET_HL, Constants.CB_GET_CONTEXT]
|
action: [Constants.CB_GET_CONTEXT]
|
||||||
});
|
});
|
||||||
/// #else
|
/// #else
|
||||||
openMobileFileById(optios.app, response.data, [Constants.CB_GET_HL, Constants.CB_GET_CONTEXT]);
|
openMobileFileById(optios.app, response.data, [Constants.CB_GET_CONTEXT]);
|
||||||
/// #endif
|
/// #endif
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -128,10 +128,10 @@ export const newFile = (optios: {
|
||||||
openFileById({
|
openFileById({
|
||||||
app: optios.app,
|
app: optios.app,
|
||||||
id: response.data,
|
id: response.data,
|
||||||
action: [Constants.CB_GET_HL, Constants.CB_GET_CONTEXT]
|
action: [Constants.CB_GET_CONTEXT]
|
||||||
});
|
});
|
||||||
/// #else
|
/// #else
|
||||||
openMobileFileById(optios.app, response.data, [Constants.CB_GET_HL, Constants.CB_GET_CONTEXT]);
|
openMobileFileById(optios.app, response.data, [Constants.CB_GET_CONTEXT]);
|
||||||
/// #endif
|
/// #endif
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
@ -151,10 +151,10 @@ export const newFile = (optios: {
|
||||||
openFileById({
|
openFileById({
|
||||||
app: optios.app,
|
app: optios.app,
|
||||||
id: response.data,
|
id: response.data,
|
||||||
action: [Constants.CB_GET_HL, Constants.CB_GET_CONTEXT]
|
action: [Constants.CB_GET_CONTEXT]
|
||||||
});
|
});
|
||||||
/// #else
|
/// #else
|
||||||
openMobileFileById(optios.app, response.data, [Constants.CB_GET_HL, Constants.CB_GET_CONTEXT]);
|
openMobileFileById(optios.app, response.data, [Constants.CB_GET_CONTEXT]);
|
||||||
/// #endif
|
/// #endif
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
|
|
@ -173,9 +173,9 @@ export const newFile = (optios: {
|
||||||
sorts: optios.paths
|
sorts: optios.paths
|
||||||
}, () => {
|
}, () => {
|
||||||
/// #if !MOBILE
|
/// #if !MOBILE
|
||||||
openFileById({app: optios.app, id, action: [Constants.CB_GET_HL, Constants.CB_GET_CONTEXT]});
|
openFileById({app: optios.app, id, action: [Constants.CB_GET_CONTEXT]});
|
||||||
/// #else
|
/// #else
|
||||||
openMobileFileById(optios.app, id, [Constants.CB_GET_HL, Constants.CB_GET_CONTEXT]);
|
openMobileFileById(optios.app, id, [Constants.CB_GET_CONTEXT]);
|
||||||
/// #endif
|
/// #endif
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue