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 @@ + + 清空条件 + +