Fix TypeScript build errors in module pages
- Replace location.reload() with proper window.location.reload() function calls - Remove unused isReady variable in ChatPage.vue - Add handleRetry functions in ChatPage.vue and EventsPage.vue - Ensures successful production builds with vue-tsc type checking 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
813cc86b3d
commit
a811040a34
2 changed files with 11 additions and 3 deletions
|
|
@ -15,7 +15,7 @@
|
|||
<div class="text-center space-y-4">
|
||||
<h2 class="text-xl font-semibold text-red-600">Failed to load chat</h2>
|
||||
<p class="text-muted-foreground">{{ error }}</p>
|
||||
<button @click="location.reload()" class="px-4 py-2 bg-primary text-primary-foreground rounded">
|
||||
<button @click="handleRetry" class="px-4 py-2 bg-primary text-primary-foreground rounded">
|
||||
Retry
|
||||
</button>
|
||||
</div>
|
||||
|
|
@ -32,5 +32,9 @@ import { useModuleReady } from '@/composables/useModuleReady'
|
|||
import ChatComponent from '../components/ChatComponent.vue'
|
||||
|
||||
// Simple reactive module loading - no complex logic needed
|
||||
const { isReady, isLoading, error } = useModuleReady('chat')
|
||||
const { isLoading, error } = useModuleReady('chat')
|
||||
|
||||
function handleRetry() {
|
||||
window.location.reload()
|
||||
}
|
||||
</script>
|
||||
|
|
@ -64,6 +64,10 @@ function handlePurchaseClick(event: {
|
|||
selectedEvent.value = event
|
||||
showPurchaseDialog.value = true
|
||||
}
|
||||
|
||||
function handleRetry() {
|
||||
window.location.reload()
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
@ -83,7 +87,7 @@ function handlePurchaseClick(event: {
|
|||
<div class="text-center space-y-4">
|
||||
<h2 class="text-xl font-semibold text-red-600">Failed to load events</h2>
|
||||
<p class="text-muted-foreground">{{ moduleError }}</p>
|
||||
<button @click="location.reload()" class="px-4 py-2 bg-primary text-primary-foreground rounded">
|
||||
<button @click="handleRetry" class="px-4 py-2 bg-primary text-primary-foreground rounded">
|
||||
Retry
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue