|
|
|
@ -4,6 +4,7 @@
|
|
|
|
<div class="dashboard">
|
|
|
|
<div class="dashboard">
|
|
|
|
<CardPanel
|
|
|
|
<CardPanel
|
|
|
|
v-for="data in dashboardData"
|
|
|
|
v-for="data in dashboardData"
|
|
|
|
|
|
|
|
:key="data.title"
|
|
|
|
:mode="data.mode"
|
|
|
|
:mode="data.mode"
|
|
|
|
:icon="data.icon"
|
|
|
|
:icon="data.icon"
|
|
|
|
:title="data.title"
|
|
|
|
:title="data.title"
|
|
|
|
@ -40,7 +41,7 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
const { data: data, refresh } = await useFetch('/api/profile', {
|
|
|
|
const { refresh } = await useFetch('/api/profile', {
|
|
|
|
onResponse({ response }) {
|
|
|
|
onResponse({ response }) {
|
|
|
|
dashboardData.noteCount.data = response._data.count;
|
|
|
|
dashboardData.noteCount.data = response._data.count;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|