feat: 推送链路调整

This commit is contained in:
Tim
2025-07-30 11:35:28 +08:00
parent dccf8f9d0c
commit aa138afe61
8 changed files with 17 additions and 2 deletions

View File

@@ -59,6 +59,7 @@ import { githubAuthorize } from '../utils/github'
import { discordAuthorize } from '../utils/discord'
import { twitterAuthorize } from '../utils/twitter'
import BaseInput from '../components/BaseInput.vue'
import { registerPush } from '../utils/push'
export default {
name: 'LoginPageView',
components: { BaseInput },
@@ -87,6 +88,7 @@ export default {
setToken(data.token)
await loadCurrentUser()
toast.success('登录成功')
registerPush()
this.$router.push('/')
} else if (data.reason_code === 'NOT_VERIFIED') {
toast.info('当前邮箱未验证,已经为您重新发送验证码')