异步方法里跳转问题?
async loadDataSync() {
let that = this
try {
let data1 = that.initData1()
let data2 = that.initData2()
let dataList = await Promise.all([data1, data2])
if (XXXXXX) {
wx.redirectTo({
url: ‘…/default/default’
})
。。。。
跳转无效,请问此处该怎么写?