Skip to content

Commit

Permalink
fix: repair breadcrumb icon display abnormality
Browse files Browse the repository at this point in the history
  • Loading branch information
kirklin committed Jan 8, 2024
1 parent c0565d5 commit ec2bafc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/admin/src/layouts/header/components/Breadcrumb.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ watchEffect(() => {
key: isNil(child?.redirect) ? child.path : child?.redirect,
children: undefined,
label: localize(child.name),
icon: () => renderIcon(child.icon),
icon: renderIcon(child.icon),
})),
}));
}
Expand All @@ -51,19 +51,19 @@ function selectDropdown(key) {
<template>
<NBreadcrumb class="breadcrumb">
<NBreadcrumbItem @click="navigateTo({ path: '/' })">
<span class="inline-block align-text-bottom i-tabler-home text-16px" />
<CAIcon icon="tabler:home" :size="16" />
</NBreadcrumbItem>
<TransitionGroup name="breadcrumbAnimation">
<template v-for="breadcrumb in breadcrumbs" :key="breadcrumb.path">
<NBreadcrumbItem>
<NDropdown v-if="breadcrumb.children" :options="breadcrumb.options" @select="selectDropdown">
<span>
<svg v-if="breadcrumb.icon" :class="breadcrumb.icon" class="inline-block align-text-bottom mr-4px text-16px" />
<CAIcon v-if="breadcrumb.icon" :icon="breadcrumb.icon" :size="16" class="inline-block align-text-bottom mr-4px text-16px" />
<span>{{ localize(breadcrumb.name) }}</span>
</span>
</NDropdown>
<template v-else>
<svg v-if="breadcrumb.icon" :class="breadcrumb.icon" class="inline-block align-text-bottom mr-4px text-16px" />
<CAIcon v-if="breadcrumb.icon" :icon="breadcrumb.icon" :size="16" class="inline-block align-text-bottom mr-2" />
<span>{{ localize(breadcrumb.name) }}</span>
</template>
</NBreadcrumbItem>
Expand Down

2 comments on commit ec2bafc

@vercel
Copy link

@vercel vercel bot commented on ec2bafc Jan 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

celeris-web – ./apps/admin

celeris-web-git-master-kirklin.vercel.app
celeris-web-kirklin.vercel.app
celeris-web.vercel.app

@vercel
Copy link

@vercel vercel bot commented on ec2bafc Jan 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

celeris-web-api – ./services/admin

celeris-web-api-git-master-kirklin.vercel.app
celeris-web-api.vercel.app
celeris-web-api-kirklin.vercel.app

Please sign in to comment.