mirror of
https://github.com/siyuan-note/siyuan
synced 2026-04-21 13:37:52 +00:00
This commit is contained in:
parent
0e1071f4f4
commit
9edbaf8cd7
1 changed files with 3 additions and 3 deletions
|
|
@ -76,19 +76,19 @@ export const uninstall = (app: App, name: string, isReload: boolean) => {
|
|||
}
|
||||
}
|
||||
|
||||
if (Object.keys(window.siyuan.layout.leftDock.data).includes(key)) {
|
||||
if (window.siyuan.layout.leftDock && Object.keys(window.siyuan.layout.leftDock.data).includes(key)) {
|
||||
window.siyuan.layout.leftDock.remove(key);
|
||||
if (dockIconElement) {
|
||||
window.siyuan.storage[Constants.LOCAL_PLUGIN_DOCKS][plugin.name][key].position =
|
||||
"Left" + (dockIconElement.getAttribute("data-index") === "0" ? "Top" : "Bottom");
|
||||
}
|
||||
} else if (Object.keys(window.siyuan.layout.rightDock.data).includes(key)) {
|
||||
} else if (window.siyuan.layout.rightDock && Object.keys(window.siyuan.layout.rightDock.data).includes(key)) {
|
||||
window.siyuan.layout.rightDock.remove(key);
|
||||
if (dockIconElement) {
|
||||
window.siyuan.storage[Constants.LOCAL_PLUGIN_DOCKS][plugin.name][key].position =
|
||||
"Right" + (dockIconElement.getAttribute("data-index") === "0" ? "Top" : "Bottom");
|
||||
}
|
||||
} else if (Object.keys(window.siyuan.layout.bottomDock.data).includes(key)) {
|
||||
} else if (window.siyuan.layout.bottomDock && Object.keys(window.siyuan.layout.bottomDock.data).includes(key)) {
|
||||
window.siyuan.layout.bottomDock.remove(key);
|
||||
if (dockIconElement) {
|
||||
window.siyuan.storage[Constants.LOCAL_PLUGIN_DOCKS][plugin.name][key].position =
|
||||
|
|
|
|||
Loading…
Reference in a new issue