diff --git a/.gitignore b/.gitignore index b5141ca..c781343 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,6 @@ node_modules bun.lock yarn.lock - -.vercel -.env*.local +.edgeone/ +.vercel +.env*.local diff --git a/app/app.vue b/app/app.vue index 4e70374..90c876f 100644 --- a/app/app.vue +++ b/app/app.vue @@ -9,8 +9,8 @@ useHead({ // meta: () => siteMetaData, }); -const desktopBg = siteConfig.theme.background || ""; -const mobileBg = siteConfig.theme.backgroundMobile || ""; +const desktopBg = siteConfig.theme?.background || ""; +const mobileBg = siteConfig.theme?.backgroundMobile || ""; // 将 siteConfig.theme.color 转换为 CSS 变量 const hexToRgb = (hex: string) => { @@ -20,15 +20,39 @@ const hexToRgb = (hex: string) => { : "189, 131, 243"; }; -const primaryColor = siteConfig.theme.color || "#bd83f3"; +const primaryColor = siteConfig.theme?.color || "#bd83f3"; const primaryRgb = hexToRgb(primaryColor); +// Parse traceConfig.script (which may contain raw diff --git a/app/components/main/footer.vue b/app/components/main/footer.vue index dcc8bcf..493cf41 100644 --- a/app/components/main/footer.vue +++ b/app/components/main/footer.vue @@ -9,11 +9,6 @@ · {{ fromWho }}

- -

- 👁️ {{ visitors }} · 📊 {{ pageviews }} -

-

-
-