diff --git a/src/lunar/config.js b/src/lunar/config.js index 9ba11c1..0f6a731 100644 --- a/src/lunar/config.js +++ b/src/lunar/config.js @@ -508,4 +508,4 @@ export const SOLAR_FESTIVALS = { '12.25': '圣诞节' } -export const CACHE_FILE = join(process.env.HOME, '.festivals.json') +export const CACHE_FILE = join(process.env.HOME || process.env.LOCALAPPDATA, '.festivals.json')