fix: 去掉通知的权限
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m51s

This commit is contained in:
luo
2026-07-28 16:08:34 +08:00
parent 261f5f2853
commit b51a3f5537
6 changed files with 50 additions and 43 deletions

View File

@@ -194,8 +194,6 @@
import { mittBus } from '@/utils/sys'
import { useMenuStore } from '@/store/modules/menu'
import { useNotificationStore } from '@/store/modules/notification'
import { useAuth } from '@/composables/useAuth'
import { NOTIFICATION_PERMISSIONS } from '@/config/constants/notification'
import AppConfig from '@/config'
const isWindows = navigator.userAgent.includes('Windows')
const { locale } = useI18n()
@@ -203,7 +201,6 @@
const settingStore = useSettingStore()
const userStore = useUserStore()
const notificationStore = useNotificationStore()
const { hasAuth } = useAuth()
const router = useRouter()
const {
@@ -262,12 +259,10 @@
onMounted(() => {
initLanguage()
if (hasAuth(NOTIFICATION_PERMISSIONS.page)) {
void notificationStore.refreshUnreadCount().catch(() => undefined)
unreadTimer = window.setInterval(() => {
void notificationStore.refreshUnreadCount().catch(() => undefined)
unreadTimer = window.setInterval(() => {
void notificationStore.refreshUnreadCount().catch(() => undefined)
}, 30_000)
}
}, 30_000)
})
let unreadTimer: number | undefined