|
@@ -4,10 +4,10 @@
|
|
|
<app-link v-if="onlyOneChild.meta" :to="resolvePath(onlyOneChild.path)">
|
|
|
<el-menu-item :index="resolvePath(onlyOneChild.path)" :class="{'submenu-title-noDropdown':!isNest}">
|
|
|
<item :icon="onlyOneChild.meta.icon||(item.meta&&item.meta.icon)" :title="onlyOneChild.meta.title" />
|
|
|
+ <div v-show="onlyOneChild.meta.title === '个人工作台' || onlyOneChild.meta.title === '团队工作台'" class="if-notice" />
|
|
|
</el-menu-item>
|
|
|
</app-link>
|
|
|
</template>
|
|
|
-
|
|
|
<el-submenu v-else ref="subMenu" :index="resolvePath(item.path)" popper-append-to-body>
|
|
|
<template slot="title">
|
|
|
<item v-if="item.meta" :icon="item.meta && item.meta.icon" :title="item.meta.title" />
|
|
@@ -93,3 +93,15 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
+<style lang="scss" scoped>
|
|
|
+.if-notice {
|
|
|
+ position: absolute;
|
|
|
+ height: 10px;
|
|
|
+ width: 10px;
|
|
|
+ background-color: tomato;
|
|
|
+ border-radius: 50%;
|
|
|
+ top: 50%;
|
|
|
+ right: 20%;
|
|
|
+ transform: translateY(-50%);
|
|
|
+}
|
|
|
+</style>
|