更新 app.py
This commit is contained in:
@@ -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
Block a user