pansl 2 年之前
父节点
当前提交
4ed06a81c9
共有 4 个文件被更改,包括 58 次插入58 次删除
  1. 19 19
      src/router/modules/applet.ts
  2. 19 19
      src/router/modules/caster.ts
  3. 19 19
      src/router/modules/video.ts
  4. 1 1
      src/views/user/caster/index.vue

+ 19 - 19
src/router/modules/applet.ts

@@ -1,20 +1,20 @@
-import { RouteRecordRaw } from 'vue-router';
-// eslint-disable-next-line @typescript-eslint/ban-ts-comment
-// @ts-ignore
-const router: RouteRecordRaw[] = [
-  {
-    path: '/applet',
-    component: () => import('@/layout/index.vue'),
-    meta: { title: '小程序管理', icon: 'user' },
-    children: [
-      {
-        path: 'applet',
-        name: 'applet-account',
-        meta: { title: '小程序管理', icon: 'home' },
-        component: () => import('@/views/appletManage/index.vue')
-      }
-    ]
-  }
-];
+// import { RouteRecordRaw } from 'vue-router';
+// // eslint-disable-next-line @typescript-eslint/ban-ts-comment
+// // @ts-ignore
+// const router: RouteRecordRaw[] = [
+//   {
+//     path: '/applet',
+//     component: () => import('@/layout/index.vue'),
+//     meta: { title: '小程序管理', icon: 'user' },
+//     children: [
+//       {
+//         path: 'applet',
+//         name: 'applet-account',
+//         meta: { title: '小程序管理', icon: 'home' },
+//         component: () => import('@/views/appletManage/index.vue')
+//       }
+//     ]
+//   }
+// ];
 
-export default router;
+// export default router;

+ 19 - 19
src/router/modules/caster.ts

@@ -1,20 +1,20 @@
-import { RouteRecordRaw } from 'vue-router';
-// eslint-disable-next-line @typescript-eslint/ban-ts-comment
-// @ts-ignore
-const router: RouteRecordRaw[] = [
-  {
-    path: '/users',
-    component: () => import('@/layout/index.vue'),
-    meta: { title: '用户管理', icon: 'user' },
-    children: [
-      {
-        path: 'index',
-        name: 'user-account',
-        meta: { title: '添加优化师', icon: 'home' },
-        component: () => import('@/views/user/caster/index.vue')
-      }
-    ]
-  }
-];
+// import { RouteRecordRaw } from 'vue-router';
+// // eslint-disable-next-line @typescript-eslint/ban-ts-comment
+// // @ts-ignore
+// const router: RouteRecordRaw[] = [
+//   {
+//     path: '/users',
+//     component: () => import('@/layout/index.vue'),
+//     meta: { title: '用户管理', icon: 'user' },
+//     children: [
+//       {
+//         path: 'index',
+//         name: 'user-account',
+//         meta: { title: '添加优化师', icon: 'home' },
+//         component: () => import('@/views/user/caster/index.vue')
+//       }
+//     ]
+//   }
+// ];
 
-export default router;
+// export default router;

+ 19 - 19
src/router/modules/video.ts

@@ -1,20 +1,20 @@
-import { RouteRecordRaw } from 'vue-router';
-// eslint-disable-next-line @typescript-eslint/ban-ts-comment
-// @ts-ignore
-const router: RouteRecordRaw[] = [
-  {
-    path: '/video',
-    component: () => import('@/layout/index.vue'),
-    meta: { title: '视频库管理', icon: 'user' },
-    children: [
-      {
-        path: 'video',
-        name: 'video-account',
-        meta: { title: '视频库管理', icon: 'home' },
-        component: () => import('@/views/videoManage/index.vue')
-      }
-    ]
-  }
-];
+// import { RouteRecordRaw } from 'vue-router';
+// // eslint-disable-next-line @typescript-eslint/ban-ts-comment
+// // @ts-ignore
+// const router: RouteRecordRaw[] = [
+//   {
+//     path: '/video',
+//     component: () => import('@/layout/index.vue'),
+//     meta: { title: '视频库管理', icon: 'user' },
+//     children: [
+//       {
+//         path: 'video',
+//         name: 'video-account',
+//         meta: { title: '视频库管理', icon: 'home' },
+//         component: () => import('@/views/videoManage/index.vue')
+//       }
+//     ]
+//   }
+// ];
 
-export default router;
+// export default router;

+ 1 - 1
src/views/user/caster/index.vue

@@ -39,7 +39,7 @@
               </div>
             </template>
           </el-table-column>
-          <el-table-column prop="status" label="状态" v-action="'channel.Advertiser.enable'">
+          <el-table-column prop="status" label="状态" v-action="'User.user.enable'">
             <template #default="scope">
               <Status v-model="scope.row.status" :id="scope.row.id" :api="statusapi" />
             </template>