Skip to content

Commit 370d549

Browse files
committed
🎨 #16244
1 parent 00c1f66 commit 370d549

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/src/plugin/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ import {BlockPanel} from "../block/Panel";
1616
import {Setting} from "./Setting";
1717
import {clearOBG} from "../layout/dock/util";
1818
import {Constants} from "../constants";
19+
import {uninstall} from "./uninstall";
20+
import {afterLoadPlugin} from "./loader";
1921

2022
export class Plugin {
2123
private app: App;
@@ -115,6 +117,9 @@ export class Plugin {
115117

116118
public onDataChanged() {
117119
// 存储数据变更
120+
// 兼容 4.3.1 以前同步数据使用重载插件的问题
121+
uninstall(this.app, this.name, false);
122+
afterLoadPlugin(this);
118123
}
119124

120125
public async updateCards(options: ICardData) {

0 commit comments

Comments
 (0)