From 0df6b095d60d61b21c31b7d4438a9f83956cb226 Mon Sep 17 00:00:00 2001
From: liangping <18786721@qq.com>
Date: Sun, 11 Sep 2022 14:56:18 +0800
Subject: [PATCH] fix issue
---
src/views/Dashboard.vue | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/views/Dashboard.vue b/src/views/Dashboard.vue
index bd642a71..cc2eaa25 100644
--- a/src/views/Dashboard.vue
+++ b/src/views/Dashboard.vue
@@ -271,10 +271,10 @@
{{ formatDate(data.item.completion_time) }}
- {{ data.item.initial_balance }}{{ stakingParameters.bond_denom }}
+ {{ data.item.initial_balance }}
- {{ data.item.balance }}{{ stakingParameters.bond_denom }}
+ {{ data.item.balance }}
@@ -339,6 +339,7 @@ import {
} from '@/libs/utils'
import OperationModal from '@/views/components/OperationModal/index.vue'
import Ripple from 'vue-ripple-directive'
+import dayjs from 'dayjs'
import ParametersModuleComponent from './components/parameters/ParametersModuleComponent.vue'
import DashboardCardHorizontal from './components/dashboard/DashboardCardHorizontal.vue'
import DashboardCardVertical from './components/dashboard/DashboardCardVertical.vue'
@@ -592,6 +593,7 @@ export default {
return { title: this.convert(data[k]), subtitle: k }
})
},
+ formatDate: v => dayjs(v).format('YYYY-MM-DD HH:mm:ss'),
convert(v) {
if (typeof v === 'object') {
const v2 = {}