+
{
top: 0;
}
}
-
\ No newline at end of file
+
diff --git a/src/views/Dashboard.vue b/src/views/Dashboard.vue
index 1010ce727..c70deb340 100644
--- a/src/views/Dashboard.vue
+++ b/src/views/Dashboard.vue
@@ -37,6 +37,7 @@ const getData = async () => {
.get(config.API.msgInbox)
.then((res: any) => {
const data = res.data.result;
+
let list: DataInbox[] = [];
data.map((e: ResponseInbox) => {
list.push({
@@ -53,7 +54,8 @@ const getData = async () => {
});
});
inboxList.value = list;
- if (inboxList.value) {
+
+ if (inboxList.value.length > 0) {
selectInbox(inboxList.value[0].no);
}
})