1、首先要拥有一个开发者张号
注册地址:开发者中心
2、打开Hbuilder新建一个uni-admin项目
3、关联云服务空间(如果没有就直接创建一个)
4、初始化db_init.json
下载插件uni-upgrade-center Admin管理后台
关键:
前端在app.vue引入
// #ifdef APP-PLUS
import checkUpdate from "@/uni_modules/uni-upgrade-center-app/utils/check-update";
// #endif
在onLaunch里调用
// #ifdef APP-PLUS
checkUpdate();
// #endif<