fix: 当前用户禁止删除/重置密码

This commit is contained in:
TsMask
2025-03-13 16:53:53 +08:00
parent bce9a8e923
commit d12b34087e

View File

@@ -1061,7 +1061,7 @@ onMounted(() => {
<template #icon><FormOutlined /></template>
</a-button>
</a-tooltip>
<a-tooltip>
<a-tooltip placement="topLeft" v-if="record.userId != userStore.userId">
<template #title>{{ t('common.deleteText') }}</template>
<a-button
type="link"
@@ -1071,7 +1071,7 @@ onMounted(() => {
<template #icon><DeleteOutlined /></template>
</a-button>
</a-tooltip>
<a-tooltip placement="topLeft">
<a-tooltip placement="topLeft" v-if="record.userId != userStore.userId">
<template #title>
{{ t('views.system.user.resetPwd') }}
</template>