refactor(routes): 刪除 app.py 首頁重複路由

ADR-017 Phase 3f-1 dashboard sprint;首頁改由 dashboard_bp 接管,並更新 url_for('index') 相容引用。
This commit is contained in:
OoO
2026-04-29 21:11:45 +08:00
parent aa56479c66
commit 71ea819d06
4 changed files with 5 additions and 298 deletions

View File

@@ -79,7 +79,7 @@
您沒有權限存取此頁面。<br>
如需存取,請聯繫系統管理員。
</p>
<a href="{{ url_for('index') }}" class="btn-back">
<a href="{{ url_for('dashboard.index') }}" class="btn-back">
<i class="fas fa-home me-2"></i>返回首頁
</a>
</div>

View File

@@ -62,7 +62,7 @@
<button type="submit" class="btn btn-primary" id="submitBtn">
<i class="fas fa-save me-2"></i>變更密碼
</button>
<a href="{{ url_for('index') }}" class="btn btn-secondary">
<a href="{{ url_for('dashboard.index') }}" class="btn btn-secondary">
<i class="fas fa-times me-2"></i>取消
</a>
</div>