This commit is contained in:
Mr Chen
2024-10-26 04:04:00 +08:00
parent 95ff8c66f6
commit d026385370
8 changed files with 396 additions and 111 deletions
+6 -1
View File
@@ -10,6 +10,7 @@
import os
import sys
import time
import uuid
import logging
from datetime import timedelta
@@ -109,8 +110,12 @@ def page_unauthorized(error):
# 设置模板全局变量
@app.context_processor
def inject_global_variables():
ver = setting.APP_VERSION;
if mw.isDebugMode():
ver = ver + str(time.time())
config = {
'version': setting.APP_VERSION,
'version': ver,
'title' : '面板',
'ip' : '127.0.0.1'
}