improve ui

This commit is contained in:
liangping 2021-08-07 15:17:08 +08:00
parent 6f7fcece61
commit d6f9f68eee
2 changed files with 5 additions and 3 deletions

View File

@ -70,8 +70,8 @@
<h4 class="font-weight-bolder mb-0">
{{ item.title || '-' }}
</h4>
<b-card-text class="font-small-3 mb-1">
{{ item.subtitle }}
<b-card-text class="font-small-3 mb-1 text-capitalize">
{{ formatText(item.subtitle) }}
</b-card-text>
</b-media-body>
</b-media>
@ -112,5 +112,8 @@ export default {
default: () => {},
},
},
methods: {
formatText: v => String(v).replaceAll('_', ' '),
},
}
</script>

View File

@ -108,7 +108,6 @@ export default {
},
beforeRouteUpdate(to, from, next) {
const { hash } = to.params
console.log(hash !== from.params.hash, hash, from.params)
if (hash !== from.params.hash) {
this.$http.getTxs(hash).then(res => {
this.tx = res