refix
This commit is contained in:
1 parent
7589b77916
commit
d309f41e47
2 files changed
+18
-4
No files matched your search
+1
-2
@@ -522,8 +522,7 @@ def serve_view():
|
||||
"""根路径:优先返回 index.html(社区首页),不存在时回退到 __view.html(文件浏览)"""
|
||||
if not FILESYSTEM_ENABLED:
|
||||
return "文件系统未启用", 403
|
||||
#index_path = os.path.join(HTML_ROOT_DIR, 'index.html')
|
||||
index_path = os.path.join(HTML_ROOT_DIR, 'login.html')
|
||||
index_path = os.path.join(HTML_ROOT_DIR, 'index.html')
|
||||
if os.path.exists(index_path):
|
||||
return send_file(index_path, mimetype='text/html')
|
||||
view_path = os.path.join(HTML_ROOT_DIR, VIEW_FILE)
|
||||
|
||||
Reference in new issue
Block a user