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 @@ -