From 2019ec9cf804f9e95fc20563fee9ee3b319d4b95 Mon Sep 17 00:00:00 2001 From: imloama Date: Sat, 28 Apr 2018 17:03:12 +0800 Subject: [PATCH 1/2] trade chart fixed --- src/components/FullK.vue | 21 ++++++++++++++++----- src/components/K.vue | 21 ++++++++++++++++++--- src/mixins/k-mixins.js | 17 ++++++++++++++++- 3 files changed, 50 insertions(+), 9 deletions(-) diff --git a/src/components/FullK.vue b/src/components/FullK.vue index 74574a63..7829408e 100644 --- a/src/components/FullK.vue +++ b/src/components/FullK.vue @@ -42,11 +42,11 @@
-
{{$t('week')}}
-
{{$t('day')}}
-
{{$t('hour')}}
-
15{{$t('minute')}}
-
1{{$t('minute')}}
+
{{$t('week')}}
+
{{$t('day')}}
+
{{$t('hour')}}
+
15{{$t('minute')}}
+
1{{$t('minute')}}
@@ -443,6 +443,17 @@ export default { ] } }, // end of koption + chgResolutionKey(key){ + this.chgResolution(key) + this.reloadAll() + }, + reloadAll(){ + this.cleanData() + this.initView(); + this.fetch(); + this.fetchLastTradeAggregation() + this.fetchLastTrade() + } }, components: { diff --git a/src/components/K.vue b/src/components/K.vue index 0ebcd448..04636ace 100644 --- a/src/components/K.vue +++ b/src/components/K.vue @@ -3,7 +3,7 @@ * @Author: mazhaoyong@gmail.com * @Date: 2018-01-25 11:53:34 * @Last Modified by: mazhaoyong@gmail.com - * @Last Modified time: 2018-04-20 16:24:46 + * @Last Modified time: 2018-04-28 16:50:33 * @License: MIT */