feat: theme mode base on device
This commit is contained in:
parent
53bb20a8c1
commit
613a5759a9
2 changed files with 48 additions and 23 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue