pansl 1 год назад
Родитель
Сommit
d3a2c96271
2 измененных файлов с 41 добавлено и 41 удалено
  1. 40 40
      src/router/modules/charge.ts
  2. 1 1
      src/views/dashboard/index.vue

+ 40 - 40
src/router/modules/charge.ts

@@ -1,41 +1,41 @@
-import { RouteRecordRaw } from 'vue-router';
-// eslint-disable-next-line @typescript-eslint/ban-ts-comment
-// @ts-ignore
-const router: RouteRecordRaw[] = [
-  {
-    path: '/charge',
-    component: () => import('@/layout/index.vue'),
-    meta: { title: '数据统计', icon: 'user' },
-    children: [
-      {
-        path: 'index',
-        name: 'user-account11',
-        meta: { title: '短剧统计', icon: 'home' },
-        component: () =>
-          import('@/views/dataStatistics/shortStatistical/index.vue')
-      },
-      {
-        path: 'index3',
-        name: 'user-account112',
-        meta: { title: '投入产出', icon: 'home' },
-        component: () =>
-          import('@/views/dataStatistics/roiStatistical/index.vue')
-      },
-      {
-        path: 'index1',
-        name: 'user-account',
-        meta: { title: '充值统计', icon: 'home' },
-        component: () =>
-          import('@/views/dataStatistics/rechargeStatistics/index.vue')
-      },
-      {
-        path: 'index2',
-        name: 'user-account99',
-        meta: { title: '微信提审', icon: 'home', hidden: false },
-        component: () => import('@/views/videoManage/wechatAudit/index.vue')
-      }
-    ]
-  }
-];
+// import { RouteRecordRaw } from 'vue-router';
+// // eslint-disable-next-line @typescript-eslint/ban-ts-comment
+// // @ts-ignore
+// const router: RouteRecordRaw[] = [
+//   {
+//     path: '/charge',
+//     component: () => import('@/layout/index.vue'),
+//     meta: { title: '数据统计', icon: 'user' },
+//     children: [
+//       {
+//         path: 'index',
+//         name: 'user-account11',
+//         meta: { title: '短剧统计', icon: 'home' },
+//         component: () =>
+//           import('@/views/dataStatistics/shortStatistical/index.vue')
+//       },
+//       {
+//         path: 'index3',
+//         name: 'user-account112',
+//         meta: { title: '投入产出', icon: 'home' },
+//         component: () =>
+//           import('@/views/dataStatistics/roiStatistical/index.vue')
+//       },
+//       {
+//         path: 'index1',
+//         name: 'user-account',
+//         meta: { title: '充值统计', icon: 'home' },
+//         component: () =>
+//           import('@/views/dataStatistics/rechargeStatistics/index.vue')
+//       },
+//       {
+//         path: 'index2',
+//         name: 'user-account99',
+//         meta: { title: '微信提审', icon: 'home', hidden: false },
+//         component: () => import('@/views/videoManage/wechatAudit/index.vue')
+//       }
+//     ]
+//   }
+// ];
 
-export default router;
+// export default router;

+ 1 - 1
src/views/dashboard/index.vue

@@ -19,7 +19,7 @@ import router from '@/router';
 import todayData from "./dataStatistics/todayData.vue";
 let path = getFirstPath(0);
 if (path) {
-  // router.push({ path: path });
+  router.push({ path: path });
 }
 console.log('path', path)
 </script>