mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-10 14:42:33 +01:00
🚨
This commit is contained in:
parent
1744d6b5cd
commit
580fb4007e
6 changed files with 37 additions and 33 deletions
|
|
@ -65,23 +65,23 @@ export class Dock {
|
|||
this.position = options.position;
|
||||
this.pin = options.data.pin;
|
||||
this.data = {};
|
||||
let showDock = false
|
||||
let showDock = false;
|
||||
if (options.data.data.length !== 0) {
|
||||
if (!showDock) {
|
||||
options.data.data[0].find(item => {
|
||||
if (TYPES.includes(item.type)) {
|
||||
showDock = true
|
||||
return true
|
||||
showDock = true;
|
||||
return true;
|
||||
}
|
||||
})
|
||||
});
|
||||
}
|
||||
if (!showDock && options.data.data[1]) {
|
||||
options.data.data[1].find(item => {
|
||||
if (TYPES.includes(item.type)) {
|
||||
showDock = true
|
||||
return true
|
||||
showDock = true;
|
||||
return true;
|
||||
}
|
||||
})
|
||||
});
|
||||
}
|
||||
}
|
||||
if (!showDock) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue