From b539f4c351adf72d67864d74dce862a1c6c99118 Mon Sep 17 00:00:00 2001 From: maochaoying <925670706@qq.com> Date: Sun, 10 Sep 2023 16:15:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=86=E7=A0=81bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/websocket.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/store/modules/websocket.js b/src/store/modules/websocket.js index 0c8b424..af652e7 100644 --- a/src/store/modules/websocket.js +++ b/src/store/modules/websocket.js @@ -159,7 +159,8 @@ export const useWebSocketStore = defineStore({ userStore.updateUserList(dbval) break case 'chpasswd': - if (ackcode != 0) { + const { ackcode: chpasswdCode } = JSON.parse(ev.data) + if (chpasswdCode != 0) { // 修改失败 showFailToast('修改失败') } else {