From 953b74bf522ff438127ad59ecf5c903db2a2fa5f Mon Sep 17 00:00:00 2001 From: lt Date: Mon, 27 Apr 2026 21:51:54 +0800 Subject: [PATCH] =?UTF-8?q?fix(ui):=20=E4=BF=AE=E5=A4=8D=E7=A9=BA=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E6=98=BE=E7=A4=BA=E5=92=8C=20Vue=20=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - currentUser 初始值改为空对象,避免 null 访问错误 - template 中添加空值保护:currentUser.username ? ... : '?' - 确保 Vue 应用能正常挂载 --- platform/frontend/topics.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/frontend/topics.html b/platform/frontend/topics.html index 6f05038..266d0d5 100644 --- a/platform/frontend/topics.html +++ b/platform/frontend/topics.html @@ -85,7 +85,7 @@ @@ -189,7 +189,7 @@ const TopicsApp = { currentPage: 'topics', isLoggedIn: false, isAdmin: false, - currentUser: null, + currentUser: { username: }, loadingTable: false, selectedTopicIds: [], filterStatus: '',