From fdfd5afa778993742d00b4b3289f09577c3e4fe7 Mon Sep 17 00:00:00 2001 From: wally <18603454788@163.com> Date: Mon, 10 May 2021 09:15:03 +0800 Subject: [PATCH] =?UTF-8?q?axios=20=E4=BB=A3=E7=90=86=20=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E5=8F=8Adayjs=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + src/App.vue | 4 ++-- src/api/api.ts | 11 +++++++---- src/components/toolbar.vue | 9 ++++++--- src/main.ts | 3 ++- src/utils/dayjs.ts | 6 ++++++ src/utils/http.ts | 28 ++++++++++++++++++++++++---- src/views/repo-five.vue | 15 ++++++++++----- tsconfig.json | 2 ++ vite.config.js | 6 +++--- yarn.lock | 5 +++++ 11 files changed, 68 insertions(+), 22 deletions(-) create mode 100644 src/utils/dayjs.ts diff --git a/package.json b/package.json index dc0a727..eb3bd5a 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ }, "dependencies": { "axios": "^0.21.1", + "dayjs": "^1.10.4", "echarts": "^5.1.1", "vue": "~3.0", "vue-router": "4", diff --git a/src/App.vue b/src/App.vue index e99c451..d7c5699 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,10 +1,10 @@ -