refactor(projects): perf code

This commit is contained in:
Soybean
2024-03-24 03:02:08 +08:00
parent 187098136e
commit f91ef30bd5
54 changed files with 219 additions and 119 deletions

View File

@@ -26,14 +26,14 @@ function handleClickMenu(key: RouteKey) {
<template>
<NBreadcrumb v-if="themeStore.header.breadcrumb.visible">
<!-- define component: BreadcrumbContent -->
<!-- define component start: BreadcrumbContent -->
<DefineBreadcrumbContent v-slot="{ breadcrumb }">
<div class="i-flex-y-center align-middle">
<component :is="breadcrumb.icon" v-if="themeStore.header.breadcrumb.showIcon" class="mr-4px text-icon" />
{{ breadcrumb.label }}
</div>
</DefineBreadcrumbContent>
<!-- define component: BreadcrumbContent -->
<!-- define component end: BreadcrumbContent -->
<NBreadcrumbItem v-for="item in routeStore.breadcrumbs" :key="item.key">
<NDropdown v-if="item.options?.length" :options="item.options" @select="handleClickMenu">