更新 app.py
parent
80d7b89cfa
commit
4bad46e43e
|
|
@ -53,7 +53,7 @@ def home():
|
||||||
return render_template('home.html')
|
return render_template('home.html')
|
||||||
|
|
||||||
else:
|
else:
|
||||||
return redirect(url_for('login')) # 如果用户未登录,重定向到登录页面
|
return redirect(url_for('/')) # 如果用户未登录,重定向到登录页面
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
app.run(debug=True)
|
app.run(debug=True)
|
||||||
|
|
|
||||||
Reference in New Issue