From 27fb85f6301672e703970225e943f1a08dbf7596 Mon Sep 17 00:00:00 2001 From: Qing Liang <106448173+xue-ding-e@users.noreply.github.com> Date: Fri, 7 Nov 2025 22:50:01 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=E7=94=A8=E6=88=B7=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=E6=97=A0=E6=B3=95=E5=88=86=E9=85=8D=20/=20?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E8=A7=92=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/view/superAdmin/user/user.vue | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/web/src/view/superAdmin/user/user.vue b/web/src/view/superAdmin/user/user.vue index 974edc14..1fab1c08 100644 --- a/web/src/view/superAdmin/user/user.vue +++ b/web/src/view/superAdmin/user/user.vue @@ -174,7 +174,7 @@ - + { + authOptions.value = [] + setAuthorityOptions(authData, authOptions.value) + } + const initPage = async () => { getTableData() const res = await getAuthorityList() @@ -373,7 +379,7 @@ nickName: '', password: '' }) - + // 生成随机密码 const generateRandomPassword = () => { const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*' @@ -395,7 +401,7 @@ }) }) } - + // 打开重置密码对话框 const resetPasswordFunc = (row) => { resetPwdInfo.value.ID = row.ID @@ -404,7 +410,7 @@ resetPwdInfo.value.password = '' resetPwdDialog.value = true } - + // 确认重置密码 const confirmResetPassword = async () => { if (!resetPwdInfo.value.password) { @@ -414,12 +420,12 @@ }) return } - + const res = await resetPassword({ ID: resetPwdInfo.value.ID, password: resetPwdInfo.value.password }) - + if (res.code === 0) { ElMessage({ type: 'success', @@ -433,7 +439,7 @@ }) } } - + // 关闭重置密码对话框 const closeResetPwdDialog = () => { resetPwdInfo.value.password = '' @@ -450,12 +456,6 @@ }) } - const authOptions = ref([]) - const setOptions = (authData) => { - authOptions.value = [] - setAuthorityOptions(authData, authOptions.value) - } - const deleteUserFunc = async (row) => { ElMessageBox.confirm('确定要删除吗?', '提示', { confirmButtonText: '确定',