删除返回首页

This commit is contained in:
朱潮 2025-11-30 22:25:01 +08:00
parent 2a2ef429b4
commit 613ee8b1ad
2 changed files with 1 additions and 6 deletions

View File

@ -1868,7 +1868,6 @@ def generate_completion_page(session_data: sqlite3.Row, session_id: str) -> str:
</div>
<div class="actions">
<a href="/" class="btn">返回首页</a>
<a href="/quiz-results/{session_id}" class="btn btn-secondary">查看答题结果</a>
</div>
@ -2335,7 +2334,6 @@ def generate_quiz_results_page(session_data: sqlite3.Row, session_id: str) -> st
</div>
<div class="actions">
<a href="/" class="btn">返回首页</a>
<button id="checkReportBtn" class="btn btn-success" style="display: none;">查看详细报告</button>
<button id="refreshBtn" class="btn btn-secondary">刷新页面</button>
</div>
@ -2544,4 +2542,4 @@ def generate_quiz_results_page(session_data: sqlite3.Row, session_id: str) -> st
if __name__ == "__main__":
import uvicorn
uvicorn.run("main:app", host="0.0.0.0", port=8000, reload=True)
uvicorn.run("main:app", host="0.0.0.0", port=8000, reload=True)

View File

@ -39,9 +39,6 @@ class SurveyRenderer {
<h3 style="color: #ff7e5f; margin-bottom: 20px;"> 报告生成失败</h3>
<p style="color: #666; margin-bottom: 25px; line-height: 1.6;">${error.message}</p>
<div style="display: flex; gap: 15px; justify-content: center; flex-wrap: wrap;">
<a href="/" style="background: linear-gradient(135deg, #ff7e5f, #feb47b); color: white; padding: 12px 24px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: transform 0.2s; box-shadow: 0 4px 15px rgba(255, 126, 95, 0.3);">
返回首页
</a>
<button onclick="checkRegenerationOptions()" style="background: linear-gradient(135deg, #4a90e2, #357abd); color: white; padding: 12px 24px; border-radius: 8px; border: none; font-weight: 600; cursor: pointer; transition: transform 0.2s; box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);">
检查可重新生成的报告
</button>