From d54e27e1491a2cb3c28cbef66fd6dc3ffbfe8dc0 Mon Sep 17 00:00:00 2001 From: pzvjlefpx <1290604840@qq.com> Date: Thu, 13 Nov 2025 16:01:13 +0800 Subject: [PATCH] webchange2 --- .../writing-assistant/routes/ocr.py | 2 +- .../writing-assistant/static/css/style.css | 2 +- .../writing-assistant/templates/base.html | 36 ++++++++++++------- .../writing-assistant/templates/projects.html | 2 +- data/projects.json | 2 +- 5 files changed, 27 insertions(+), 17 deletions(-) diff --git a/AI-Writing-main/writing-assistant/routes/ocr.py b/AI-Writing-main/writing-assistant/routes/ocr.py index 38869c5..55b7883 100644 --- a/AI-Writing-main/writing-assistant/routes/ocr.py +++ b/AI-Writing-main/writing-assistant/routes/ocr.py @@ -18,7 +18,7 @@ def allowed_file(filename): """检查文件类型是否允许""" allowed_extensions = {'png', 'jpg', 'jpeg', 'gif', 'bmp', 'tiff'} return '.' in filename and \ - filename.rsplit('.', 1)[1].lower() in allowed_extensions + filename.rsplit('.', 1)[1].lower() in allowed_extensions @ocr_bp.route('/api/ocr/recognize', methods=['POST']) def recognize_text(): diff --git a/AI-Writing-main/writing-assistant/static/css/style.css b/AI-Writing-main/writing-assistant/static/css/style.css index 17d45bb..fbacdf6 100644 --- a/AI-Writing-main/writing-assistant/static/css/style.css +++ b/AI-Writing-main/writing-assistant/static/css/style.css @@ -788,7 +788,7 @@ body { } .breadcrumb-item.active { - color: #6c757d; + color: #58626c; } /* 页脚样式优化 */ diff --git a/AI-Writing-main/writing-assistant/templates/base.html b/AI-Writing-main/writing-assistant/templates/base.html index 46ba009..c09f0a7 100644 --- a/AI-Writing-main/writing-assistant/templates/base.html +++ b/AI-Writing-main/writing-assistant/templates/base.html @@ -3,12 +3,12 @@ - + - + - + @@ -17,7 +17,7 @@ - {% block title %}AI智能写作辅导软件{% endblock %} + {% block title %}EssayGraderApp{% endblock %} @@ -63,7 +63,7 @@ - 智能写作 + EssayGraderApp @@ -97,7 +97,7 @@