|
@@ -24,7 +24,7 @@ const pageInfo = ref({
|
|
|
cp: 1,
|
|
cp: 1,
|
|
|
ps: 30
|
|
ps: 30
|
|
|
})
|
|
})
|
|
|
-const getNotificationList = (isChangeType: boolean) => {
|
|
|
|
|
|
|
+const getNotificationList = (isChangeType?: boolean) => {
|
|
|
loading.value = true
|
|
loading.value = true
|
|
|
$api
|
|
$api
|
|
|
.getNotificationList({
|
|
.getNotificationList({
|
|
@@ -90,6 +90,7 @@ const handleChangeNotificationType = async (value: string) => {
|
|
|
const closeDrawer = () => {
|
|
const closeDrawer = () => {
|
|
|
notificationList.value = []
|
|
notificationList.value = []
|
|
|
notificationType.value = 'all'
|
|
notificationType.value = 'all'
|
|
|
|
|
+ notificationMessageCardRef.value.adjustScrollTop(0)
|
|
|
notificationMsgStore.markMessageAsRead()
|
|
notificationMsgStore.markMessageAsRead()
|
|
|
pageInfo.value.cp = 1
|
|
pageInfo.value.cp = 1
|
|
|
}
|
|
}
|
|
@@ -98,7 +99,7 @@ const closeDrawer = () => {
|
|
|
<template>
|
|
<template>
|
|
|
<el-drawer
|
|
<el-drawer
|
|
|
ref="drawerRef"
|
|
ref="drawerRef"
|
|
|
- @open="getNotificationList"
|
|
|
|
|
|
|
+ @open="getNotificationList(true)"
|
|
|
@closed="closeDrawer"
|
|
@closed="closeDrawer"
|
|
|
class="notice-drawer"
|
|
class="notice-drawer"
|
|
|
size="432px"
|
|
size="432px"
|