From 2662560f1929a6a3ad3ead4b6acc69a918c3f748 Mon Sep 17 00:00:00 2001 From: Xinos Date: Fri, 17 May 2024 00:41:51 +0700 Subject: [PATCH] fix default lang --- src/store/modules/userSettings/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/modules/userSettings/index.ts b/src/store/modules/userSettings/index.ts index cf32a7f4..813156c8 100644 --- a/src/store/modules/userSettings/index.ts +++ b/src/store/modules/userSettings/index.ts @@ -14,7 +14,7 @@ export default { strict: isDev, state: { ...settings, - language: settings.language || ((browserLang in supportLocales) ? browserLang : defaultSettings.language), + language: settings.language || (supportLocales.includes(browserLang) ? browserLang : defaultSettings.language), }, mutations: mutations, };