mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 23:50:13 +01:00
🐛 rm mobile custom tab
This commit is contained in:
parent
f8ec38e416
commit
72764ddb6e
3 changed files with 22 additions and 4 deletions
|
|
@ -6,8 +6,9 @@ import {MenuItem} from "../menus/Menu";
|
|||
import {Menu as SiyuanMenu} from "../menus/Menu";
|
||||
import {fetchGet, fetchPost, fetchSyncPost} from "../util/fetch";
|
||||
import {isMobile} from "../util/functions";
|
||||
import {Custom} from "../layout/dock/Custom";
|
||||
/// #if !MOBILE
|
||||
import {openFile} from "../editor/util";
|
||||
/// #endif
|
||||
|
||||
export class Menu {
|
||||
private menu: SiyuanMenu;
|
||||
|
|
@ -69,6 +70,15 @@ export class Menu {
|
|||
}
|
||||
}
|
||||
|
||||
let openTab;
|
||||
/// #if MOBILE
|
||||
openTab = () => {
|
||||
// TODO: Mobile
|
||||
}
|
||||
/// #else
|
||||
openTab = openFile;
|
||||
/// #endif
|
||||
|
||||
export const API = {
|
||||
confirm: confirmDialog,
|
||||
showMessage,
|
||||
|
|
@ -76,7 +86,7 @@ export const API = {
|
|||
fetchSyncPost,
|
||||
fetchGet,
|
||||
isMobile,
|
||||
openTab: openFile,
|
||||
openTab,
|
||||
Plugin,
|
||||
Dialog,
|
||||
Menu,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue