Skip to content

Commit

Permalink
支持 uTools 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaou66 committed Jun 14, 2022
1 parent e8af9d6 commit 2543cd1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion pictureBed/preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,4 +200,6 @@ function portUsed(port) {
}
});
});
}
}

window.onPluginReady = utools.onPluginReady ? utools.onPluginReady : (callback) => { callback() };
2 changes: 1 addition & 1 deletion picturebed-vue/src/views/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default {
},
created () {
// eslint-disable-next-line no-undef
utools.onPluginReady(() => {
window.onPluginReady(() => {
// 版本检查
uToolsUtils.isNewVersion()
// 数据读入
Expand Down

0 comments on commit 2543cd1

Please sign in to comment.