加上try {}catch{}
async getCode() {
try {
const res = await this.getCodeAsync()
} catch (err) {
console.log(err)
}
}
然后就完美解决了
加上try {}catch{}
async getCode() {
try {
const res = await this.getCodeAsync()
} catch (err) {
console.log(err)
}
}
然后就完美解决了