mirror of
https://github.com/siyuan-note/plugin-sample-vite-svelte.git
synced 2025-06-08 02:46:02 +00:00
fix: destroy dock
This commit is contained in:
parent
de42dc1b55
commit
199fb320e7
1 changed files with 2 additions and 1 deletions
|
@ -64,7 +64,7 @@ export default class SamplePlugin extends Plugin {
|
|||
},
|
||||
type: DOCK_TYPE,
|
||||
init() {
|
||||
new DockExample({
|
||||
this.component = new DockExample({
|
||||
target: this.element,
|
||||
props: {
|
||||
text: this.data.text,
|
||||
|
@ -73,6 +73,7 @@ export default class SamplePlugin extends Plugin {
|
|||
},
|
||||
destroy() {
|
||||
console.log("destroy dock:", DOCK_TYPE);
|
||||
this.component.$destroy();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue