diff --git a/js/about.js b/js/about.js index d8caa9c..5637715 100644 --- a/js/about.js +++ b/js/about.js @@ -13,7 +13,7 @@ function getStoredLanguage() { // 公共方法:设置本地存储的主题设置 function setStoredTheme(theme) { - const cacheKey = window.SiteConfig?.cacheKeys?.theme?.key || 'theme-v2'; + const cacheKey = window.SiteConfig?.cacheKeys?.theme?.key || 'theme'; localStorage.setItem(cacheKey, JSON.stringify({ value: theme, time: new Date().getTime() })); diff --git a/js/config.js b/js/config.js index 480ff8c..634514d 100644 --- a/js/config.js +++ b/js/config.js @@ -43,9 +43,9 @@ const SiteConfig = { // 通用缓存键与TTL(毫秒) cacheKeys: { - github: { key: 'gh_data_v2', ttlMs: 36000000 }, - blog: { key: 'blog_data_v2', ttlMs: 3600000 }, - theme: { key: 'theme_v2', ttlMs: 3600000 } + github: { key: 'gh_data', ttlMs: 36000000 }, + blog: { key: 'blog_data', ttlMs: 3600000 }, + theme: { key: 'theme', ttlMs: 3600000 } }, techStack: [ diff --git a/me.html b/me.html index 69a9912..00b37b7 100644 --- a/me.html +++ b/me.html @@ -465,7 +465,7 @@
- +