From e1d18217f22243f8902aa83c504c823076e65df9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E6=9D=B0?= Date: Sun, 23 Dec 2018 11:20:54 +0800 Subject: [PATCH] update dashboard --- .../dashboard/admin/components/PanelGroup.vue | 17 ++++++++++++----- src/views/dashboard/admin/index.vue | 16 +--------------- 2 files changed, 13 insertions(+), 20 deletions(-) diff --git a/src/views/dashboard/admin/components/PanelGroup.vue b/src/views/dashboard/admin/components/PanelGroup.vue index 1764711..13a480b 100644 --- a/src/views/dashboard/admin/components/PanelGroup.vue +++ b/src/views/dashboard/admin/components/PanelGroup.vue @@ -49,16 +49,23 @@ diff --git a/src/views/dashboard/admin/index.vue b/src/views/dashboard/admin/index.vue index 2d7cc38..7a75f49 100644 --- a/src/views/dashboard/admin/index.vue +++ b/src/views/dashboard/admin/index.vue @@ -3,7 +3,7 @@ - + @@ -36,7 +36,6 @@ import LineChart from './components/LineChart' import RaddarChart from './components/RaddarChart' import PieChart from './components/PieChart' import BarChart from './components/BarChart' -import { get } from '@/api/visits' export default { name: 'DashboardAdmin', components: { @@ -46,19 +45,6 @@ export default { RaddarChart, PieChart, BarChart - }, - data() { - return { - count: { newIp: 0, newVisits: 0, recentIp: 0, recentVisits: 0 } - } - }, - mounted() { - get().then(res => { - this.count.newIp = res.newIp - this.count.newVisits = res.newVisits - this.count.recentIp = res.recentIp - this.count.recentVisits = res.recentVisits - }) } }