From 30290791008d3e280834a2ccfca8021afbfa8e34 Mon Sep 17 00:00:00 2001 From: my_key <70793915+q8018414@users.noreply.github.com> Date: Fri, 7 Feb 2025 20:01:02 +0800 Subject: [PATCH] Update layout.tsx (#1156) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改内容: 将 组件中的 src 属性从 "logo.png" 修改为 "/logo.png"。 修改原因: 为了避免在多级目录结构下,图片路径解析错误导致图片无法显示的问题。通过在路径前添加 /,确保图片始终从根目录开始查找,避免因相对路径导致的路径解析错误。 影响范围: 该修改仅影响图片的路径解析方式,不会对图片的显示效果或其他功能产生任何负面影响。 --- app/layout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/layout.tsx b/app/layout.tsx index f694849..a6058b9 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -240,7 +240,7 @@ export default function RootLayout({ children }: { children: React.ReactNode }) // - {} + {} } style={{ justifyContent: 'flex-start' }} text="BILIUP"