chore: rewrite function for upload images in payback

This commit is contained in:
caturbgs
2021-12-23 13:51:05 +07:00
parent d591615e66
commit 91ecdfb541
2 changed files with 10 additions and 2 deletions

View File

@@ -93,4 +93,13 @@ export class Payback {
console.error(e);
}
}
async uploadImages(data) {
try {
const response = await http.upload(data);
return response;
} catch (e) {
console.error(e);
}
}
}