added key to profile page v-for

main
TZGyn 3 years ago
parent 14e2b5bc79
commit 52b1b9c1fb

@ -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;
}, },

Loading…
Cancel
Save