From 1b3d545c0d5aeaa610297e4efa41575b64720f67 Mon Sep 17 00:00:00 2001 From: hailin Date: Wed, 24 Dec 2025 18:33:14 -0800 Subject: [PATCH] =?UTF-8?q?fix(admin-web):=20=E4=BC=98=E5=8C=96=E9=80=9A?= =?UTF-8?q?=E7=9F=A5=E8=A1=A8=E5=8D=95=E6=A0=87=E7=AD=BE=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E4=BD=93=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新建通知时自动刷新可用标签列表 - 添加"刷新标签"按钮方便手动刷新 - 优化空标签提示,说明需勾选"可用于广告定向" - 改进"指定用户"输入框占位符文本和示例 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../app/(dashboard)/notifications/page.tsx | 29 +++++++++++++++---- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/frontend/admin-web/src/app/(dashboard)/notifications/page.tsx b/frontend/admin-web/src/app/(dashboard)/notifications/page.tsx index de524ff5..b4f32446 100644 --- a/frontend/admin-web/src/app/(dashboard)/notifications/page.tsx +++ b/frontend/admin-web/src/app/(dashboard)/notifications/page.tsx @@ -138,6 +138,8 @@ export default function NotificationsPage() { publishedAt: '', expiresAt: '', }); + // 刷新可用标签列表,确保显示最新创建的标签 + loadTags(); setShowModal(true); }; @@ -500,11 +502,28 @@ export default function NotificationsPage() { {/* 按标签筛选 */} {formData.targetType === 'BY_TAG' && (
- +
{availableTags.length === 0 ? (
- 暂无可用标签,请先在"用户标签"中创建 + 暂无可用标签,请先在"用户标签"中创建(需勾选"可用于广告定向")
) : (
@@ -540,13 +559,13 @@ export default function NotificationsPage() { {/* 指定用户 */} {formData.targetType === 'SPECIFIC' && (
- +