From ee08474927dcd39db75d41011ed202a0d402087b Mon Sep 17 00:00:00 2001 From: v Date: Thu, 28 Aug 2025 23:05:40 +0800 Subject: [PATCH] up. ws update. --- app/controller/admin/auth/AuthController.php | 2 +- z_ele/src/api/layout/index.ts | 2 +- z_ele/src/components/LockScreenState/index.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controller/admin/auth/AuthController.php b/app/controller/admin/auth/AuthController.php index e8321b2..f34def9 100644 --- a/app/controller/admin/auth/AuthController.php +++ b/app/controller/admin/auth/AuthController.php @@ -54,7 +54,7 @@ class AuthController extends BaseController ])->find(); if($clientModel) { if($clientModel['lock_password'] !== $password) { - return $this->writeSuccess('密码错误'); + return $this->writeError('密码错误'); } $clientModel->save(['is_lock'=>0,'lock_password'=>'','lock_time'=>null]); } diff --git a/z_ele/src/api/layout/index.ts b/z_ele/src/api/layout/index.ts index 02e4e2d..64eec36 100644 --- a/z_ele/src/api/layout/index.ts +++ b/z_ele/src/api/layout/index.ts @@ -2,7 +2,7 @@ import request from '@/utils/request'; import type { ApiResult } from '@/api'; import type { User } from '@/api/system/user/model'; import type { UpdatePasswordParam } from './model'; -export async function clientScreenUnlock(data) { +export async function clientScreenUnlock(data: any) { const res = await request.post>('/auth/unlock', data); if (res.data.code === 0) { return res.data.message; diff --git a/z_ele/src/components/LockScreenState/index.vue b/z_ele/src/components/LockScreenState/index.vue index ca81b62..e38c7d3 100644 --- a/z_ele/src/components/LockScreenState/index.vue +++ b/z_ele/src/components/LockScreenState/index.vue @@ -39,7 +39,7 @@ const visible = ref(false); const lockPassword = ref(''); const confirmUnlock = () => { - clientScreenUnlock({ password: lockPassword }); + clientScreenUnlock({ password: lockPassword.value }); }; wsEventManager.subscribe(WsEvent.LOCK_CLIENT_SCREEN, () => { visible.value = true;