This commit is contained in:
30404 2024-07-08 00:45:27 +08:00
parent 95f3590150
commit b48094d3d0
2 changed files with 7 additions and 9 deletions

View File

@ -77,7 +77,7 @@ function Marking(){
<img src={Test} alt="" width='35px' height='35px'/> <img src={Test} alt="" width='35px' height='35px'/>
<div> <div>
<div className='p-mark'> <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> <p>{MarkData[key][0][6]}</p>
</div> </div>
<div id='TF'>{MarkData[key][0][6]>currentTime? ' ':'未开始'}</div> <div id='TF'>{MarkData[key][0][6]>currentTime? ' ':'未开始'}</div>

View File

@ -84,8 +84,6 @@ def login():
@app.route('/api/logout', methods=['POST']) # 退出登录功能 @app.route('/api/logout', methods=['POST']) # 退出登录功能
def logout(): # 退出登录 def logout(): # 退出登录
ID = session['id']
print(ID)
session.pop('id', None) # 删除id session.pop('id', None) # 删除id
return jsonify({'result': '注销成功'}) return jsonify({'result': '注销成功'})
@ -105,12 +103,12 @@ def register():
return jsonify({'result': '注册成功'}) return jsonify({'result': '注册成功'})
@app.route('/api/student/get_lesson', methods=['GET']) # @app.route('/api/student/get_lesson', methods=['GET'])
def get_lesson(): # 获取课程 # def get_lesson(): # 获取课程
student_id = session.get('id') # student_id = session.get('id')
student_lesson = get_lesson_func(student_id) # student_lesson = get_lesson_func(student_id)
print(student_lesson) # print(student_lesson)
return jsonify({"student_lesson": student_lesson}) # return jsonify({"student_lesson": student_lesson})
# 学生获取试卷 # 学生获取试卷