:zap:侧边栏新增isNew标记

This commit is contained in:
不做码农
2023-08-17 18:17:57 +08:00
parent b378aca3ab
commit 61a842b0cd
2 changed files with 3 additions and 0 deletions
@@ -8,6 +8,8 @@
<span v-if="props.isCollapse && !onlyOneChild.meta.icon">{{ hasTitle2(onlyOneChild.meta.title) }}</span>
<template v-if="onlyOneChild.meta.titleKey" #title>
{{ $t(onlyOneChild.meta.titleKey) }}
<svg-icon name="new" color="#fff" style="width: 60px; height: 30px" v-if="onlyOneChild.meta.isNew == 1" />
</template>
<template v-else-if="onlyOneChild.meta.title" #title>
{{ onlyOneChild.meta.title }}