Commit f0afedfa by 陈超

A

parent 3766b259
......@@ -125,7 +125,7 @@ class IndexAction extends Action
$this->assign('module_id', $module_id);
$this->assign('exams_subject_id', $cateId);
if (isAjax() && $_GET['api']) {
echo json_encode(['status' => 1, 'data' => $list]);exit;
echo json_encode(['status' => 1, 'data' => $list, 'cate' => $cateData]);exit;
}
if (isAjax()) {
$html = $this->fetch('paper_list_ajax');
......
......@@ -201,7 +201,7 @@
myCollect: []
}
},
created:function(){
created:function() {
let cate = {:json_encode($cateData)};
console.log(cate)
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment