From 55f4307b13b352b7c794f8ddc04e3fde8ed9f189 Mon Sep 17 00:00:00 2001 From: RhenCloud Date: Fri, 12 Dec 2025 23:29:42 +0800 Subject: [PATCH] =?UTF-8?q?feat(ui):=20=E6=B7=BB=E5=8A=A0=E5=8F=8B?= =?UTF-8?q?=E9=93=BE=E7=94=B3=E8=AF=B7=E8=A1=A8=E5=8D=95=E4=B8=AD=E6=83=B3?= =?UTF-8?q?=E8=AF=B4=E7=9A=84=E8=AF=9D=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在 `FriendsSection.vue` 中添加了新的表单字段“想说的话”,用户可以输入最多50字的信息。同时更新了相关的样式,以支持 `textarea` 的显示和交互,包括输入框的样式和字符计数的显示。 在 `send-mail.ts` 中添加了对新字段 `message` 的处理,确保其在邮件内容中正确显示,并在邮件的HTML部分增加了对 `message` 字段的引用。 在生成的邮件内容中增加了友链申请者的“想说的话”信息,方便接收者查看。 --- nuxt.config.ts | 12 +++++----- src/components/FriendsSection.vue | 39 +++++++++++++++++++++++++++++-- src/server/api/send-mail.ts | 27 +++++++++++++-------- vercel.json | 2 +- 4 files changed, 61 insertions(+), 19 deletions(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index d5c8c79..f76f0f8 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -11,12 +11,12 @@ export default defineNuxtConfig({ link: [{ rel: "icon", href: siteConfig.siteMeta.icon }], }, }, - nitro: { - prerender: { - crawlLinks: true, - routes: ["/sitemap.xml", "/rss.xml"], - }, - }, + // nitro: { + // prerender: { + // crawlLinks: true, + // routes: ["/sitemap.xml", "/rss.xml"], + // }, + // }, runtimeConfig: { smtpHost: process.env.SMTP_HOST ?? "", smtpPort: Number(process.env.SMTP_PORT ?? 465), diff --git a/src/components/FriendsSection.vue b/src/components/FriendsSection.vue index 9259f13..13e5a52 100644 --- a/src/components/FriendsSection.vue +++ b/src/components/FriendsSection.vue @@ -26,6 +26,13 @@ 头像链接 +