added key to profile page v-for

main
TZGyn 3 years ago
parent 14e2b5bc79
commit 52b1b9c1fb

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

Loading…
Cancel
Save