版本检测接口
This commit is contained in:
11
App.vue
11
App.vue
@@ -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)
|
||||
})
|
||||
|
||||
// 请求一个接口
|
||||
// 是否需要更新
|
||||
// 弹出更新提示
|
||||
|
||||
Reference in New Issue
Block a user