Do not re-define allowedColorModes
This commit is contained in:
parent
824d5311ec
commit
cf82f550b7
1 changed files with 1 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import { resetToDefaultAccount } from '../const';
|
import { allowedColorModes, resetToDefaultAccount } from '../const';
|
||||||
import { watch } from 'vue';
|
import { watch } from 'vue';
|
||||||
import { useRouter } from 'vue-router';
|
import { useRouter } from 'vue-router';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
|
@ -12,10 +12,6 @@ const stored_locale = useStorage('sake-locale', '');
|
||||||
const { t, locale } = useI18n({ useScope: 'global' });
|
const { t, locale } = useI18n({ useScope: 'global' });
|
||||||
const colorMode = useStorage('sake-color-mode');
|
const colorMode = useStorage('sake-color-mode');
|
||||||
const resetToDefault = useStorage('sake-reset-to-default', resetToDefaultAccount);
|
const resetToDefault = useStorage('sake-reset-to-default', resetToDefaultAccount);
|
||||||
const allowedColorModes = [
|
|
||||||
'light',
|
|
||||||
'dark',
|
|
||||||
];
|
|
||||||
|
|
||||||
const toMainView = () => {
|
const toMainView = () => {
|
||||||
return router.push('/');
|
return router.push('/');
|
||||||
|
|
Loading…
Reference in a new issue