Merge branch 'master' of https://gitea.xn--7p0a.site/2312072104/dm
This commit is contained in:
commit
fa78f1790b
|
@ -77,7 +77,7 @@ function Marking(){
|
|||
<img src={Test} alt="" width='35px' height='35px'/>
|
||||
<div>
|
||||
<div className='p-mark'>
|
||||
<span>实训{MarkData[key][0][10]}:{eval(MarkData[key][0][11])}</span>
|
||||
<span>实训{MarkData[key][0][10]}:{eval(MarkData[key][0][11])}</span>
|
||||
<p>{MarkData[key][0][6]}</p>
|
||||
</div>
|
||||
<div id='TF'>{MarkData[key][0][6]>currentTime? ' ':'未开始'}</div>
|
||||
|
|
|
@ -84,8 +84,6 @@ def login():
|
|||
|
||||
@app.route('/api/logout', methods=['POST']) # 退出登录功能
|
||||
def logout(): # 退出登录
|
||||
ID = session['id']
|
||||
print(ID)
|
||||
session.pop('id', None) # 删除id
|
||||
return jsonify({'result': '注销成功'})
|
||||
|
||||
|
@ -105,12 +103,12 @@ def register():
|
|||
return jsonify({'result': '注册成功'})
|
||||
|
||||
|
||||
@app.route('/api/student/get_lesson', methods=['GET'])
|
||||
def get_lesson(): # 获取课程
|
||||
student_id = session.get('id')
|
||||
student_lesson = get_lesson_func(student_id)
|
||||
print(student_lesson)
|
||||
return jsonify({"student_lesson": student_lesson})
|
||||
# @app.route('/api/student/get_lesson', methods=['GET'])
|
||||
# def get_lesson(): # 获取课程
|
||||
# student_id = session.get('id')
|
||||
# student_lesson = get_lesson_func(student_id)
|
||||
# print(student_lesson)
|
||||
# return jsonify({"student_lesson": student_lesson})
|
||||
|
||||
|
||||
# 学生获取试卷
|
||||
|
|
Loading…
Reference in New Issue