diff --git a/src/components/LockScreen/index.vue b/src/components/LockScreen/index.vue new file mode 100644 index 00000000..c346d120 --- /dev/null +++ b/src/components/LockScreen/index.vue @@ -0,0 +1,139 @@ + + + + diff --git a/src/constants/cache-keys-constants.ts b/src/constants/cache-keys-constants.ts index 22d7e9a5..18ab8fc7 100644 --- a/src/constants/cache-keys-constants.ts +++ b/src/constants/cache-keys-constants.ts @@ -9,3 +9,6 @@ export const CACHE_LOCAL_PRIMARY_COLOR = 'cache:local:primaryColor'; /**本地缓存-多语言 */ export const CACHE_LOCAL_I18N = 'cache:local:i18n'; + +/**本地缓存-锁屏设置 */ +export const CACHE_LOCAL_LOCK = 'cache:local:Lock'; diff --git a/src/layouts/components/RightContent.vue b/src/layouts/components/RightContent.vue index 73bacefb..94f9ad5b 100644 --- a/src/layouts/components/RightContent.vue +++ b/src/layouts/components/RightContent.vue @@ -6,6 +6,7 @@ import useI18n from '@/hooks/useI18n'; import useAppStore from '@/store/modules/app'; import useUserStore from '@/store/modules/user'; import useAlarmStore from '@/store/modules/alarm'; +import LockScreen from '@/components/LockScreen/index.vue'; const { isFullscreen, toggle } = useFullscreen(); const { t, changeLocale, optionsLocale } = useI18n(); const userStore = useUserStore(); @@ -61,7 +62,7 @@ function fnChangeLocale(e: any) { - +