版本检测接口

This commit is contained in:
唐明明
2021-11-01 17:24:30 +08:00
parent cb0da38a87
commit 61366da9d2
3 changed files with 33 additions and 2 deletions

11
App.vue
View File

@@ -1,4 +1,5 @@
<script>
<script>
import { getVersions } from './apis/interfaces/versions'
export default {
onLaunch() {
//#ifdef H5
@@ -25,6 +26,14 @@
// 获取系统版本号
console.log(plus.runtime.versionCode)
console.log(plus.runtime.uniVersion)
getVersions({
version:
}).then(res => {
console.log(res)
})
// 请求一个接口
// 是否需要更新
// 弹出更新提示