diff --git a/src/components/log.vue b/src/components/log.vue index d394211..96dfc2d 100644 --- a/src/components/log.vue +++ b/src/components/log.vue @@ -76,16 +76,11 @@ export default { } else { path += "&step=" + this.step; } - let res = await fetch(apiurl(path)) - .then(r => { - if (r.status == 200) { - return r.text(); - } - return ""; - }) - .then(data => { - this.items.push(this.formatter.ansi_to_html(data)); - }); + let res = await fetch(apiurl(path)); + if (res.status == 200) { + let data = await res.text(); + this.items.push(this.formatter.ansi_to_html(data)); + } } }, watch: { diff --git a/src/components/loginform.vue b/src/components/loginform.vue index ac33d15..ef66c22 100644 --- a/src/components/loginform.vue +++ b/src/components/loginform.vue @@ -32,8 +32,6 @@