up. 格式化代码
This commit is contained in:
parent
0247c8d713
commit
874d611efa
@ -40,7 +40,7 @@
|
||||
import { ref } from 'vue';
|
||||
import { WsEvent, wsEventManager } from '@/plugins/websocket';
|
||||
import { clientScreenUnlock } from '@/api/layout';
|
||||
import { LockScreenStatus, useClientStore } from "@/store/modules/client";
|
||||
import { LockScreenStatus, useClientStore } from '@/store/modules/client';
|
||||
|
||||
/** 设备状态管理器 */
|
||||
const clientStore = useClientStore();
|
||||
@ -50,14 +50,14 @@
|
||||
const unlockLoading = ref(false);
|
||||
/** 确定解锁 */
|
||||
const confirmUnlock = () => {
|
||||
if(unlockLoading.value){
|
||||
if (unlockLoading.value) {
|
||||
return;
|
||||
}
|
||||
unlockLoading.value = true;
|
||||
|
||||
clientScreenUnlock({ password: lockPassword.value })
|
||||
.then(() => {
|
||||
clientStore.setLockScreen(LockScreenStatus.UNLOCK)
|
||||
clientStore.setLockScreen(LockScreenStatus.UNLOCK);
|
||||
lockPassword.value = ''; // 清空密码
|
||||
})
|
||||
.catch((message) => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user