diff --git a/package.json b/package.json index 80fb4fac..6be0fa25 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "moviepilot", - "version": "1.9.4-2", + "version": "1.9.4", "private": true, "bin": "dist/service.js", "scripts": { diff --git a/src/pages/login.vue b/src/pages/login.vue index 7e36eaeb..ff658ec6 100644 --- a/src/pages/login.vue +++ b/src/pages/login.vue @@ -116,13 +116,13 @@ async function subscribeForPushNotifications() { } // 登录后处理 -async function afterLogin() { +async function afterLogin(superuser: boolean) { // 生效主题配置 await setTheme() // 跳转到首页或回原始页面 router.push(store.state.auth.originalPath ?? '/') // 订阅推送通知 - await subscribeForPushNotifications() + if (superuser) await subscribeForPushNotifications() } // 登录获取token事件 @@ -163,7 +163,7 @@ function login() { store.dispatch('auth/updateAvatar', avatar) // 登录后处理 - afterLogin() + afterLogin(superuser) }) .catch((error: any) => { // 登录失败,显示错误提示