Debug axios

This commit is contained in:
liangping
2021-07-22 16:18:47 +08:00
parent 3fb71b2dda
commit db623812aa
5 changed files with 30 additions and 12 deletions
-3
View File
@@ -199,9 +199,6 @@ import {
BRow, BCol, BCard, BCardTitle, BCardText, BCardBody, BCardFooter, BButton, BProgressBar, BProgress, BBadge, BTooltip,
} from 'bootstrap-vue'
import Ripple from 'vue-ripple-directive'
import store from '@/store'
console.log(store.state.chains)
export default {
components: {
+13 -1
View File
@@ -1,7 +1,7 @@
<template>
<b-card title="Create Awesome 🙌">
<b-card-text>This is your second page. ]] {{ $t('staking') }} </b-card-text>
<b-card-text>Chocolate sesame snaps pie carrot cake pastry pie lollipop muffin. Carrot cake dragée chupa chups jujubes. Macaroon liquorice cookie wafer tart marzipan bonbon. Gingerbread jelly-o dragée chocolate.</b-card-text>
<b-card-text> {{ info }} Chocolate sesame snaps pie carrot cake pastry pie lollipop muffin. Carrot cake dragée chupa chups jujubes. Macaroon liquorice cookie wafer tart marzipan bonbon. Gingerbread jelly-o dragée chocolate.</b-card-text>
</b-card>
</template>
@@ -13,6 +13,18 @@ export default {
BCard,
BCardText,
},
data() {
return {
info: 'unloaded',
}
},
mounted() {
this.$http.get('/api/node_info', { crossdomain: true }).then(response => {
this.data.info = response.data
}).catch(e => {
this.errors.push(e)
})
},
}
</script>