test/custom-admin-ui #3

Merged
orion merged 673 commits from test/custom-admin-ui into master 2026-06-05 17:20:58 +08:00
Showing only changes of commit 98529c63e0 - Show all commits
+2 -2
View File
@@ -18,8 +18,8 @@ app = FastAPI()
if not os.path.exists('./static'): if not os.path.exists('./static'):
os.makedirs('./static') os.makedirs('./static')
app.mount("/static", StaticFiles(directory="static"), name="static") app.mount("/static", StaticFiles(directory="static"), name="static")
index_html = open('templates/index.html', 'r').read() index_html = open('templates/index.html', 'r', encoding='utf-8').read()
admin_html = open('templates/admin.html', 'r').read() admin_html = open('templates/admin.html', 'r', encoding='utf-8').read()
# 过期时间 # 过期时间
exp_hour = 24 exp_hour = 24
# 允许错误次数 # 允许错误次数