JS同步执行代码
new Promise(function(){initAppToken()}).then(()=>
getApps(this.pageInfo).then(res => {
this.data = res.data.records
this.pageInfo.total = parseInt(res.data.total)
}).finally(() => {
this.loading = false
})
)