vue-sfc-compiler/compiler/src/test2.vue

21 lines
327 B
Vue

<template lang="pug">
p {{ yolo }}
</template>
<script>
export default {
name: 'raith-test2', //Really important
data() {
return {
yolo: null
}
},
created() {
API.pages().then(resp => {
this.yolo = resp.data
}).catch(err => {
this.yolo = err.response.statusText
})
}
}
</script>