From 519a9cf6c7454e4d6f3eb18a0f10eaa846122856 Mon Sep 17 00:00:00 2001 From: hbcui1984 Date: Fri, 24 Jul 2020 16:54:52 +0800 Subject: [PATCH] Update update.js --- examples/hello-mui/js/update.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/hello-mui/js/update.js b/examples/hello-mui/js/update.js index 17359d7c..8900fe3f 100644 --- a/examples/hello-mui/js/update.js +++ b/examples/hello-mui/js/update.js @@ -39,4 +39,7 @@ function update() { }); } -mui.os.plus && !mui.os.stream && mui.plusReady(update); \ No newline at end of file +// 真机运行不需要检查更新,真机运行时appid固定为'HBuilder',这是调试基座的appid +if(plus.runtime.appid !== 'HBuilder' && mui.os.plus && !mui.os.stream ){ + mui.plusReady(update); +} \ No newline at end of file