diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 23c4bc8e..14f6424f 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -97,30 +97,6 @@ const formComponents = { register: defineAsyncComponent(() => import("./components/Register.vue")), resetPwd: defineAsyncComponent(() => import("./components/ResetPwd.vue")), }; - -let notificationInstance: ReturnType | null = null; - -const showVoteNotification = () => { - notificationInstance = ElNotification({ - title: "2025 CSDN 博客之星评选,诚邀支持!", - message: `文章整理了 youlai 全栈开源矩阵,并同步了 2026 路线图与年度计划。欢迎 点赞 / 收藏 支持~
点击查看评选文章`, - type: "success", - position: "bottom-left", - duration: 0, - dangerouslyUseHTMLString: true, - }); -}; - -onMounted(() => { - setTimeout(showVoteNotification, 500); -}); - -onBeforeUnmount(() => { - if (notificationInstance) { - notificationInstance.close(); - notificationInstance = null; - } -});