refactor: OSS base URL 与 logo URL 改由 API 下发 (AGENTS.md 合规)

This commit is contained in:
2026-06-17 17:47:51 +08:00
parent 2759afa176
commit d9604b99dc
4 changed files with 76 additions and 4 deletions
+2 -1
View File
@@ -10,6 +10,7 @@ import {
WalletOutlined,
} from "@ant-design/icons";
import { LocalAvatar } from "./LocalAvatar";
import { getLogoUrl } from "../api/publicConfigClient";
import type { WebUserSession } from "../types";
interface TopbarProps {
@@ -110,7 +111,7 @@ export function Topbar({
onClick={onOpenWorkspace}
>
<span className="ecommerce-standalone__logo" aria-hidden="true">
<img src="https://stringtest.oss-cn-hangzhou.aliyuncs.com/logo.png" alt="" />
<img src={getLogoUrl()} alt="" />
</span>
<strong>OmniAI </strong>
</button>