Kaynağa Gözat

improve: 菜单及路由

From-wh 2 yıl önce
ebeveyn
işleme
b7c2fc03e7

+ 3 - 0
template/admin/src/layout/navMenu/horizontal.vue

@@ -130,6 +130,9 @@ export default {
 </script>
 
 <style scoped lang="scss">
+/deep/ .el-scrollbar__bar.is-horizontal {
+  height: 0;
+}
 .el-menu-horizontal-warp {
   flex: 1;
   overflow: hidden;

+ 0 - 23
template/admin/src/router/modules/index.js

@@ -12,29 +12,6 @@ import LayoutMain from '@/layout';
 import setting from '@/setting';
 let routePre = setting.routePre;
 
-// export default {
-//   path: '/',
-//   name: 'home',
-//   redirect: '/admin/home',
-//   component: LayoutMain,
-//   meta: {
-//     hideInMenu: true,
-//     notCache: true,
-//     auth: true
-//   },
-//   children: [
-//     {
-//       path: 'admin/home',
-//       name: 'home',
-//       meta: {
-//         title: '首页',
-//         auth: ['admin-index-index']
-//       },
-//       component: () => import('@/pages/index/index')
-//     }
-//   ]
-// }
-
 const meta = {
   auth: true,
 };