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
                    })
                )
posted @ 2019-11-28 11:15  鹿野之城  阅读(3039)  评论(0编辑  收藏  举报