Fix frontend blank page issue

- Simplify Home.vue to avoid API loading errors
- Use built-in template data instead of API calls
- Add simple error handling for API requests
- Add test page for debugging
This commit is contained in:
Poker Design Developer
2026-05-31 19:35:53 +08:00
parent 5dbcebf7a2
commit 48b6fb0a39
5 changed files with 212 additions and 147 deletions

View File

@@ -4,18 +4,6 @@ const API_BASE = '/api'
export async function getProjects() {
const response = await axios.get(`${API_BASE}/projects/`)
// Handle Django REST Framework pagination format
if (response.data.value !== undefined) {
return response.data.value
}
return response.data
}
export async function getTemplates() {
const response = await axios.get(`${API_BASE}/templates/`)
if (response.data.value !== undefined) {
return response.data.value
}
return response.data
}