From 8ce8a8b9966779960e6d232d7385353a2e37b409 Mon Sep 17 00:00:00 2001 From: CI Bot Date: Mon, 13 Jul 2026 20:55:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Prettier=20=E6=A0=BC=E5=BC=8F=E5=8C=96?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20(Accounts/Dashboard/TitleLibrary)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Accounts.tsx: PlatformId 类型联合格式化 - Dashboard.tsx: JSX 属性换行格式化 - TitleLibrary.tsx: 移除多余空行 修复 Frontend Lint CI 门禁报错 Co-Authored-By: Claude Fable 5 --- apps/web/src/pages/accounts/Accounts.tsx | 6 +----- apps/web/src/pages/dashboard/Dashboard.tsx | 20 ++++++++++++++++---- apps/web/src/pages/titles/TitleLibrary.tsx | 4 ---- 3 files changed, 17 insertions(+), 13 deletions(-) diff --git a/apps/web/src/pages/accounts/Accounts.tsx b/apps/web/src/pages/accounts/Accounts.tsx index d2b541b92..8252a30bb 100644 --- a/apps/web/src/pages/accounts/Accounts.tsx +++ b/apps/web/src/pages/accounts/Accounts.tsx @@ -13,11 +13,7 @@ import "./accounts.css"; /* ── 类型定义 ───────────────────────────────────────────── */ -export type PlatformId = - | "douyin" - | "kuaishou" - | "xiaohongshu" - | "wechat"; +export type PlatformId = "douyin" | "kuaishou" | "xiaohongshu" | "wechat"; export interface Platform { id: PlatformId; diff --git a/apps/web/src/pages/dashboard/Dashboard.tsx b/apps/web/src/pages/dashboard/Dashboard.tsx index d1ba9c651..86ebcec88 100644 --- a/apps/web/src/pages/dashboard/Dashboard.tsx +++ b/apps/web/src/pages/dashboard/Dashboard.tsx @@ -39,7 +39,11 @@ const Dashboard: React.FC = () => {

最近任务

-
@@ -51,7 +55,10 @@ const Dashboard: React.FC = () => {
{/* 使用统计 */} -
+

使用统计

@@ -66,13 +73,18 @@ const Dashboard: React.FC = () => {
{/* 公告 */} -
+

公告

- 官方 + + 官方 +

欢迎使用小应 SaaS 平台

diff --git a/apps/web/src/pages/titles/TitleLibrary.tsx b/apps/web/src/pages/titles/TitleLibrary.tsx index 740f9f62c..1905472cb 100644 --- a/apps/web/src/pages/titles/TitleLibrary.tsx +++ b/apps/web/src/pages/titles/TitleLibrary.tsx @@ -416,7 +416,6 @@ const TitleLibrary: React.FC = () => { [deleteMutation], ); - /* 新建标题 */ const handleCreateTitle = () => { if (!newTitleContent.trim()) { @@ -503,7 +502,6 @@ const TitleLibrary: React.FC = () => { {cat.count} 条
-
))} @@ -614,8 +612,6 @@ const TitleLibrary: React.FC = () => { - - {/* ─── 新建标题弹窗 ─── */}