chore(deps): upgrade dependencies and refactor AI action handling
This commit is contained in:
@@ -60,6 +60,28 @@ const formComponents = {
|
||||
register: defineAsyncComponent(() => import("./components/Register.vue")),
|
||||
resetPwd: defineAsyncComponent(() => import("./components/ResetPwd.vue")),
|
||||
};
|
||||
|
||||
// 投票通知
|
||||
const voteUrl = "https://gitee.com/activity/2025opensource?ident=I6VXEH";
|
||||
|
||||
// 显示投票通知
|
||||
const showVoteNotification = () => {
|
||||
ElNotification({
|
||||
title: "⭐ Gitee 2025 开源评选 · 诚邀您的支持! 🙏",
|
||||
message: `我正在参加 Gitee 2025 最受欢迎的开源软件投票活动,快来给我投票吧!<br/><a href="${voteUrl}" target="_blank" style="color: var(--el-color-primary); text-decoration: none; font-weight: 500;">点击投票 →</a>`,
|
||||
type: "success",
|
||||
position: "bottom-right",
|
||||
duration: 0, // 不自动关闭
|
||||
dangerouslyUseHTMLString: true,
|
||||
});
|
||||
};
|
||||
|
||||
// 延迟显示
|
||||
onMounted(() => {
|
||||
setTimeout(() => {
|
||||
showVoteNotification();
|
||||
}, 500);
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
Reference in New Issue
Block a user