up. 格式化代码
This commit is contained in:
parent
0247c8d713
commit
874d611efa
@ -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) => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user