fix: naive tenant dropdown

pull/105/head^2
xingyu4j 2025-05-14 16:26:28 +08:00
parent d7c0bdadf8
commit 5c8c3bf2c7
2 changed files with 4 additions and 4 deletions

View File

@ -204,7 +204,7 @@ watch(
/> />
</template> </template>
<template #header-right-1> <template #header-right-1>
<TenantDropdown class="w-30 mr-2" /> <TenantDropdown class="mr-2" />
</template> </template>
<template #extra> <template #extra>
<AuthenticationLoginExpiredModal <AuthenticationLoginExpiredModal

View File

@ -50,13 +50,13 @@ onMounted(async () => {
<div v-if="tenantEnable && hasAccessByCodes(['system:tenant:visit'])"> <div v-if="tenantEnable && hasAccessByCodes(['system:tenant:visit'])">
<NSelect <NSelect
v-model:value="value" v-model:value="value"
:field-names="{ label: 'name', value: 'id' }" value-field="id"
label-field="name"
:options="tenants" :options="tenants"
:placeholder="$t('page.tenant.placeholder')" :placeholder="$t('page.tenant.placeholder')"
:dropdown-style="{ position: 'fixed', zIndex: 1666 }"
allow-clear allow-clear
class="w-40" class="w-40"
@change="handleChange" @update:value="handleChange"
/> />
</div> </div>
</template> </template>