perf(X-Pack): Hide Password Change for Third-Party Users

This commit is contained in:
fit2cloud-chenyw
2025-12-01 14:40:42 +08:00
committed by fit2cloud-chenyw
parent 1c104e93c6
commit a6744dd9d1
3 changed files with 29 additions and 3 deletions
+2 -1
View File
@@ -31,6 +31,7 @@ const name = computed(() => userStore.getName)
const account = computed(() => userStore.getAccount)
const currentLanguage = computed(() => userStore.getLanguage)
const isAdmin = computed(() => userStore.isAdmin)
const isLocalUser = computed(() => !userStore.getOrigin)
const dialogVisible = ref(false)
const aboutRef = ref()
const languageList = computed(() => [
@@ -119,7 +120,7 @@ const logout = async () => {
</el-icon>
<div class="datasource-name">{{ $t('common.system_manage') }}</div>
</div>
<div class="popover-item" @click="openPwd">
<div v-if="isLocalUser" class="popover-item" @click="openPwd">
<el-icon size="16">
<icon_key_outlined></icon_key_outlined>
</el-icon>