From 0e61d8c2478c164107872e5d22492a2c76d3e90b Mon Sep 17 00:00:00 2001 From: chenghx Date: Thu, 6 Sep 2018 15:41:04 +0800 Subject: [PATCH] refactor: change date utility libary: moment to date-fns --- package.json | 2 +- src/components/chart/MiniArea.vue | 4 ++-- src/components/chart/MiniBar.vue | 4 ++-- yarn.lock | 6 +++++- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 5b28de9..2baf257 100644 --- a/package.json +++ b/package.json @@ -18,9 +18,9 @@ "ant-design-vue": "^1.0.3", "axios": "^0.18.0", "clipboard": "^2.0.1", + "date-fns": "^1.29.0", "enquire.js": "^2.1.6", "mockjs": "^1.0.1-beta3", - "moment": "^2.22.2", "pouchdb": "^7.0.0", "viser-vue": "^2.2.5", "vue": "^2.5.17", diff --git a/src/components/chart/MiniArea.vue b/src/components/chart/MiniArea.vue index ede09fd..dab5a4e 100644 --- a/src/components/chart/MiniArea.vue +++ b/src/components/chart/MiniArea.vue @@ -10,7 +10,7 @@