feature: 完成角色授权

This commit is contained in:
zhengxinonly
2023-10-31 20:23:09 +08:00
parent 6a8fb955f5
commit 537e21728b
11 changed files with 1435 additions and 426 deletions
+11 -1
View File
@@ -1,4 +1,4 @@
from flask import Blueprint, render_template
from flask import Blueprint, render_template, send_from_directory
from flask_jwt_extended import jwt_required
index_bp = Blueprint("index", __name__)
@@ -29,3 +29,13 @@ def console1():
@index_bp.route("/view/analysis/index.html")
def analysis():
return render_template("view/analysis/index.html")
@index_bp.route("/view/system/person.html")
def person():
return render_template("view/system/person.html")
@index_bp.route("/favicon.ico")
def fav_icon():
return send_from_directory(directory="static", path="favicon.ico")