diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 11559f7..856053a 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -1,6 +1,8 @@ --- +import { getConfig } from '../../utils/config' import '../assets/css/bootstrap.css' import '../assets/css/theme-style.css' +const config = getConfig(Astro) --- @@ -18,7 +20,7 @@ import '../assets/css/theme-style.css' - + {config.app_baidu_zhanzhang ? : ''} diff --git a/utils/rpc.ts b/utils/rpc.ts index ec8c862..2ed11d1 100644 --- a/utils/rpc.ts +++ b/utils/rpc.ts @@ -87,6 +87,7 @@ export interface IWebsiteConfig { app_icp: string app_filing: string app_filing_url: string + app_baidu_zhanzhang: string } export async function websiteConfig(host:string):Promise>{ const client = getRpcClient()