@@ -29,7 +29,7 @@ export enum BusinessEvents {
|
||||
DANMAKU_CREATE = 'DANMAKU_CREATE',
|
||||
|
||||
RECENTLY_CREATE = 'RECENTLY_CREATE',
|
||||
RECENTLY_DElETE = 'RECENTLY_DElETE',
|
||||
RECENTLY_DELETE = 'RECENTLY_DELETE',
|
||||
|
||||
// util
|
||||
CONTENT_REFRESH = 'CONTENT_REFRESH', // 内容更新或重置 页面需要重载
|
||||
|
||||
@@ -258,7 +258,7 @@ export class RecentlyService {
|
||||
const isDeleted = deletedCount === 1
|
||||
scheduleManager.schedule(async () => {
|
||||
if (isDeleted) {
|
||||
await this.eventManager.broadcast(BusinessEvents.RECENTLY_DElETE, id, {
|
||||
await this.eventManager.broadcast(BusinessEvents.RECENTLY_DELETE, id, {
|
||||
scope: EventScope.TO_SYSTEM_VISITOR,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user