From 2543cd14f7d4e8e5e9db0ee25e04be4dbaa8ee1b Mon Sep 17 00:00:00 2001 From: xiaou66 <2630316030@qq.com> Date: Tue, 14 Jun 2022 21:55:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=20uTools=203.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pictureBed/preload.js | 4 +++- picturebed-vue/src/views/index.vue | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pictureBed/preload.js b/pictureBed/preload.js index 51884c4..204bb8d 100644 --- a/pictureBed/preload.js +++ b/pictureBed/preload.js @@ -200,4 +200,6 @@ function portUsed(port) { } }); }); -} \ No newline at end of file +} + +window.onPluginReady = utools.onPluginReady ? utools.onPluginReady : (callback) => { callback() }; \ No newline at end of file diff --git a/picturebed-vue/src/views/index.vue b/picturebed-vue/src/views/index.vue index e41f4c9..48cc2f7 100644 --- a/picturebed-vue/src/views/index.vue +++ b/picturebed-vue/src/views/index.vue @@ -114,7 +114,7 @@ export default { }, created () { // eslint-disable-next-line no-undef - utools.onPluginReady(() => { + window.onPluginReady(() => { // 版本检查 uToolsUtils.isNewVersion() // 数据读入