perf: standard code format in the layout folder

This commit is contained in:
xiaoxian521
2022-05-14 11:01:43 +08:00
parent 58f6be4d02
commit 25f70fd51b
9 changed files with 45 additions and 32 deletions

View File

@@ -104,8 +104,9 @@ const handleLink = (item: RouteLocationMatched): any => {
<span
v-if="item.redirect === 'noRedirect' || index == levelList.length - 1"
class="no-redirect"
>{{ transformI18n(item.meta.title) }}</span
>
{{ transformI18n(item.meta.title) }}
</span>
<a v-else @click.prevent="handleLink(item)">
{{ transformI18n(item.meta.title) }}
</a>