async getDataNew () { const res = await this.$api('apiPath') if (res && res.status === 20) { // do something } }