feat: theme mode base on device

This commit is contained in:
puriphatt 2024-07-01 06:51:33 +00:00
parent 53bb20a8c1
commit 613a5759a9
2 changed files with 48 additions and 23 deletions

View file

@ -151,9 +151,6 @@ onMounted(async () => {
setLocale('th');
}
const getCurTheme = localStorage.getItem('currentTheme');
if (getCurTheme === 'dark') $q.dark.toggle();
const resultOption = await fetch('/option/option.json');
rawOption.value = await resultOption.json();
if (locale.value === 'en-US') optionStore.globalOption = rawOption.value.eng;