[+] Call back when the response text is ready

This commit is contained in:
Hykilpikonna
2019-08-19 20:22:13 +08:00
parent e4bd1f7d50
commit 19dfbd04b9
+2
View File
@@ -26,6 +26,8 @@ export default class Login extends Vue
// Get response body text
res.text().then(text =>
{
// Call custom text event
this.$emit('login:courses', JSON.parse(text));
})
})
.catch(alert);