Fix issue

This commit is contained in:
liangping 2021-09-16 18:59:43 +08:00
parent a526060137
commit 310e022b26
2 changed files with 5 additions and 1 deletions

View File

@ -102,6 +102,7 @@
import { import {
BLink, BAvatar, BRow, BCol, BCard, BCardText, BCardTitle, BNav, BNavItem, BButton, BLink, BAvatar, BRow, BCol, BCard, BCardText, BCardTitle, BNav, BNavItem, BButton,
} from 'bootstrap-vue' } from 'bootstrap-vue'
import Ripple from 'vue-ripple-directive'
import VuexyLogo from '@core/layouts/components/Logo.vue' import VuexyLogo from '@core/layouts/components/Logo.vue'
import store from '@/store/index' import store from '@/store/index'
import { timeIn, toDay } from '@/libs/data' import { timeIn, toDay } from '@/libs/data'
@ -127,6 +128,9 @@ export default {
Locale, Locale,
AppFooter, AppFooter,
}, },
directives: {
Ripple,
},
data() { data() {
const chains = this.$store.state.chains.config const chains = this.$store.state.chains.config
return { return {

View File

@ -122,7 +122,7 @@ export default {
return tokenFormatter(value) return tokenFormatter(value)
}, },
addNewLine(value) { addNewLine(value) {
if (typeof value === 'string') { if (typeof value === 'string' && value.indexOf('\\n') > -1) {
return value.replaceAll('\\n', '\n') return value.replaceAll('\\n', '\n')
} }
return value return value