async getCode() { try { const res = await this.getCodeAsync() } catch (err) { console.log(err) } }
Async 方法中报Uncaught (in promise)解决方案
原文:https://www.cnblogs.com/hanhaihu/p/13050664.html