up. 格式化代码

This commit is contained in:
扶桑花间 2025-08-29 19:50:31 +08:00
parent 0247c8d713
commit 874d611efa

View File

@ -40,7 +40,7 @@
import { ref } from 'vue'; import { ref } from 'vue';
import { WsEvent, wsEventManager } from '@/plugins/websocket'; import { WsEvent, wsEventManager } from '@/plugins/websocket';
import { clientScreenUnlock } from '@/api/layout'; import { clientScreenUnlock } from '@/api/layout';
import { LockScreenStatus, useClientStore } from "@/store/modules/client"; import { LockScreenStatus, useClientStore } from '@/store/modules/client';
/** 设备状态管理器 */ /** 设备状态管理器 */
const clientStore = useClientStore(); const clientStore = useClientStore();
@ -50,14 +50,14 @@
const unlockLoading = ref(false); const unlockLoading = ref(false);
/** 确定解锁 */ /** 确定解锁 */
const confirmUnlock = () => { const confirmUnlock = () => {
if(unlockLoading.value){ if (unlockLoading.value) {
return; return;
} }
unlockLoading.value = true; unlockLoading.value = true;
clientScreenUnlock({ password: lockPassword.value }) clientScreenUnlock({ password: lockPassword.value })
.then(() => { .then(() => {
clientStore.setLockScreen(LockScreenStatus.UNLOCK) clientStore.setLockScreen(LockScreenStatus.UNLOCK);
lockPassword.value = ''; // lockPassword.value = ''; //
}) })
.catch((message) => { .catch((message) => {