'wip(semantic):调整模板文件'

This commit is contained in:
zhengxinonly
2021-09-08 01:05:54 +08:00
parent e918727984
commit 7505e4552b
29 changed files with 588 additions and 414 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ logs_bp = Blueprint('logs', __name__, url_prefix='/logs')
@logs_bp.get('/')
@authorize("admin:log:main")
def index():
return render_template('logs_temp/main.html')
return render_template('admin/logs_temp/main.html')
@logs_bp.get('/login_log')
@@ -40,4 +40,4 @@ def operate_log():
desc(AdminLog.create_at)).paginate(
page=page, per_page=limit, error_out=False)
data = marshal(log_paginate.items, log_fields)
return table_api(data=data, count=log_paginate.total)
return table_api(data=data, count=log_paginate.total, code=0)