lvkun пре 3 година
родитељ
комит
b357406d0c
2 измењених фајлова са 5 додато и 2 уклоњено
  1. 4 2
      src/layout/components/Sidebar/SidebarItem.vue
  2. 1 0
      src/router/index.ts

+ 4 - 2
src/layout/components/Sidebar/SidebarItem.vue

@@ -4,14 +4,16 @@
       v-if="hasOneShowingChild(item.children, item)"
     >
       <a-menu-item :key="item.path" @click="changeRoute(item)" >
-        <user-outlined />
+        <!-- <user-outlined /> -->
+        <!-- <  /> -->
+        <!-- {{item.icon}} -->
         <span>{{item.name}}</span>
       </a-menu-item>
     </template>
 
       <a-sub-menu v-else :key="item.path" >
         <template #title>
-          <user-outlined />
+          <!-- <user-outlined /> -->
           <span>
             {{item.name}}
           </span>

+ 1 - 0
src/router/index.ts

@@ -11,6 +11,7 @@ const routes: Array<ROUTER.RoutesProps> = [
       {
         path: '/dashboard',
         name: '首页',
+        icon: 'dashboard-outlined',
         component: () => import('@/pages/iot/dashboard/deviceAccess/index.vue')
       },
       {