From 5616afd85e5670ba7c04e706b6ac90e1522a3aa9 Mon Sep 17 00:00:00 2001 From: "34701892@qq.com" <34701892@qq.com> Date: Wed, 17 Dec 2025 11:25:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=A1=A8=E5=8D=95?= =?UTF-8?q?=E9=87=8D=E7=BD=AE=E5=92=8C=E5=AF=86=E7=A0=81=E9=87=8D=E7=BD=AE?= =?UTF-8?q?=E5=90=8E=E7=9A=84=E8=B7=B3=E8=BD=AC=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在jnh/add.vue中添加表单字段重置逻辑 - 在user.vue中密码重置后清除缓存并跳转登录页 - 在jnh/index.vue中添加清空条件功能并显示部门字段 --- src/layout/navBars/topBar/user.vue | 3 +++ src/views/pages/jnh/add.vue | 4 ++++ src/views/pages/jnh/index.vue | 12 ++++++++++++ 3 files changed, 19 insertions(+) diff --git a/src/layout/navBars/topBar/user.vue b/src/layout/navBars/topBar/user.vue index 0f4845f..65bcc78 100644 --- a/src/layout/navBars/topBar/user.vue +++ b/src/layout/navBars/topBar/user.vue @@ -215,6 +215,9 @@ async function handleRestPwd() { if (res.code == 200) { ElMessage.success('重置密码成功'); restDialogVisible.value = false; + + Session.clear(); // 清除浏览器全部临时缓存 + window.location.href = '/'; // 去登录页 } }); } diff --git a/src/views/pages/jnh/add.vue b/src/views/pages/jnh/add.vue index c8a53d3..7199465 100644 --- a/src/views/pages/jnh/add.vue +++ b/src/views/pages/jnh/add.vue @@ -49,6 +49,10 @@ function open(data) { } function close() { dialogTableVisible.value = false; + + form.name = ''; + form.mobile = ''; + form.department = ''; emit('close'); } const ruleFormRef = ref(null); diff --git a/src/views/pages/jnh/index.vue b/src/views/pages/jnh/index.vue index 8488f5d..fc2f0e1 100644 --- a/src/views/pages/jnh/index.vue +++ b/src/views/pages/jnh/index.vue @@ -29,14 +29,18 @@ + + 清空条件 + +