diff --git a/src/components/NotificationList.vue b/src/components/NotificationList.vue index 7f3cfd8..2ac4d2a 100644 --- a/src/components/NotificationList.vue +++ b/src/components/NotificationList.vue @@ -50,7 +50,7 @@ const loading = computed(() => notify.loading || submitting.value) async function markAsRead(item: any, idx: number) { submitting.value = true - const res = await request(`/api/notifications/${item.id}/read`, { + const res = await request("identity", `/api/notifications/${item.id}/read`, { method: "PUT", headers: { Authorization: `Bearer ${getAtk()}` }, }) diff --git a/src/views/chat/page.vue b/src/views/chat/page.vue index 93d4f33..8bde248 100644 --- a/src/views/chat/page.vue +++ b/src/views/chat/page.vue @@ -5,7 +5,12 @@ - + @@ -16,14 +21,20 @@