@@ -54,6 +54,15 @@ const BASE: AppRouteRecordRaw = {
requiresAuth: true,
},
+ {
+ path: '/subject/optional-rule-edit/:subjectId',
+ name: 'OptionalRuleEdit',
+ component: () => import('@/views/subject/OptionalRuleEdit.vue'),
+ meta: {
+ title: '选择题设置',
+ requiresAuth: true,
+ },
{
path: '/exam-manage',
name: 'ExamManage',
@@ -356,9 +356,12 @@
setLoading(false);
}
};
-
+ // 选做题设置
const onSetOptional = (row: SubjectItem) => {
- currentSubject.value = row;
+ router.push({
+ params: { subjectId: row.id },
+ });
// 导出