uniapp-安卓自动更新
update() {
var that = this;
domain.POST(api.appConfig, {}, function(res) {
if (res.code == 200) {
let data = res.data;
plus.runtime.getProperty(plus.runtime.appid, function(inf) {
if (inf.version != data.version) {
uni.showModal({
title: "发现新版本",
content: "确认下载更新",
success: (res) => {
if (res.confirm == true) { //当用户确定更新,执行更新
uniapp-安卓自动更新最先出现在Python成神之路。
共有 0 条评论