diff --git a/src/App.vue b/src/App.vue index 3461977..a1fb8ad 100644 --- a/src/App.vue +++ b/src/App.vue @@ -8,6 +8,7 @@ import { useUserStore } from '@/store/user'; import { useConfigStore } from '@/store/config'; import { storeToRefs } from 'pinia'; import { useRouter } from 'vue-router'; +import YDropDown from '@/components/ui/DropDown.vue'; const router = useRouter(); @@ -15,6 +16,7 @@ setTheme(getTheme()); const obj = reactive({ showChangeFontModal: false, + showChangeSystemModal: false, userName: '', password: '', userNameError: '', @@ -49,11 +51,16 @@ userStore.setConfig(); const useConfig = useConfigStore(); const { config } = storeToRefs(userStore); +const { currentSystem } = storeToRefs(useConfig); const changeTheme = () => { const currentTheme = getTheme(); currentTheme === 'light' ? setTheme('dark') : setTheme('light'); }; + +function changeSystem(system: string) { + useConfig.setCurrentSystem(system); +} + + + + + + @@ -201,16 +241,14 @@ header { } } .y-menu__change { - margin-left: 26px; - color: $gray-04; -} -.y-menu__change-font { - text-shadow: -2px -2px 2px $gray-04; - color: $gray-06; -} -.y-menu__change-keyboard { - text-shadow: 2px 2px 2px $gray-04; - color: $gray-06; + cursor: pointer; + border-radius: 2px; + padding: 10px 15px; + display: block; + transition: background 0.2s; + &:hover { + background: $layout-background-gray-hover; + } } main { @@ -226,7 +264,7 @@ main { color: $gray-08; } -.y-change-font__container { +.y-change__container { li { cursor: pointer; } diff --git a/src/components/Auth.vue b/src/components/Auth.vue index 38b05e9..7a1f971 100644 --- a/src/components/Auth.vue +++ b/src/components/Auth.vue @@ -463,7 +463,7 @@ const updatePassword = () => {