Browse Source

add menu auth

deason 6 năm trước cách đây
mục cha
commit
c805906fc3
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      src/modules/print/routes/routes.js

+ 5 - 0
src/modules/print/routes/routes.js

@@ -18,22 +18,27 @@ export default [
       },
       {
         path: "/print/project/list" /* 项目列表 */,
+        meta: { privilegeCodes: "print_project_list" },
         component: Project
       },
       {
         path: "/print/project/statistic/:orgId/:examId" /* 项目统计 */,
+        meta: { privilegeCodes: "print_project_statistic" },
         component: ProjectStatistic
       },
       {
         path: "/print/course/statistic" /* 课程统计 */,
+        meta: { privilegeCodes: "print_course_statistic" },
         component: CourseStatistic
       },
       {
         path: "/print/project/template" /* 模板页面 */,
+        meta: { privilegeCodes: "print_project_template" },
         component: ProjectTemplate
       },
       {
         path: "/print/exam/structure" /* 考试结构 */,
+        meta: { privilegeCodes: "print_exam_structure" },
         component: ExamStructure
       }
     ]