perf: optimize splash screen loading and remove unused telemetry code

This commit is contained in:
2026-02-26 09:09:25 -05:00
parent 787ac6e53e
commit d329336020
4 changed files with 31 additions and 20 deletions

View File

@ -3,6 +3,7 @@ import { ref, onMounted } from 'vue'
import { useRouter } from 'vue-router'
import { useCouponStore } from '@/stores/coupon'
import { authService } from '@/services/authService'
import { getImageUrl } from '@/utils/imageUrl'
const router = useRouter()
const couponStore = useCouponStore()
@ -105,12 +106,7 @@ function getStatusLabel(status: string) {
}
}
const API_URL = import.meta.env.VITE_API_URL || 'http://localhost:8000'
function getFullUrl(path: string) {
if (!path) return ''
if (path.startsWith('http')) return path
return `${API_URL}${path}`
}
const getFullUrl = (path: string) => getImageUrl(path)
</script>
<template>