更新 app.py

This commit is contained in:
2023-12-23 17:47:29 +08:00
parent 80d7b89cfa
commit 4bad46e43e

View File

@@ -53,7 +53,7 @@ def home():
return render_template('home.html')
else:
return redirect(url_for('login')) # 如果用户未登录,重定向到登录页面
return redirect(url_for('/')) # 如果用户未登录,重定向到登录页面
if __name__ == '__main__':
app.run(debug=True)