Merge branch 'main' into develop-20240517-页面优化

This commit is contained in:
jxxghp
2024-05-17 10:56:08 +08:00
committed by GitHub
3 changed files with 4 additions and 4 deletions

View File

@@ -48,7 +48,7 @@ onUnmounted(() => {
<VIcon class="cursor-move" v-if="hover.isHovering">mdi-drag</VIcon>
</template>
<VCardTitle>
{{ props.config?.name }}
{{ props.config?.attrs?.title ?? props.config?.name }}
</VCardTitle>
<VCardSubtitle v-if="props.config?.attrs?.subtitle"> {{ props.config?.attrs?.subtitle }}</VCardSubtitle>
</VCardItem>

View File

@@ -264,7 +264,7 @@ onBeforeMount(async () => {
<VCardText>
<VRow>
<VCol v-for="item in dashboardConfigs" :key="item.id" cols="6" md="4" sm="4">
<VCheckbox v-model="enableConfig[item.id]" :label="item.name" />
<VCheckbox v-model="enableConfig[item.id]" :label="item.attrs?.title ?? item.name" />
</VCol>
</VRow>
</VCardText>