Skip to content

Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.

fix(histogram): 修复直方图加载失败时的错误状态处理

Timothy Yin8eeacbde7649
diff --git a/app/components/Histogram.vue b/app/components/Histogram.vue
index e700b63d..67edfb79 100644
--- a/app/components/Histogram.vue
+++ b/app/components/Histogram.vue
@@ -19,6 +19,8 @@ const histogramData = ref<HistogramDataCompressed | null>(null)
watchEffect(() => {
isLoading.value = true
+ isError.value = false
+ histogramData.value = null
const img = new Image()
img.crossOrigin = 'Anonymous'
@@ -87,7 +89,7 @@ watchEffect(() => {
>
<Icon
name="tabler:alert-triangle"
- class="text-xl animate-spin"
+ class="text-xl"
/>
<span class="text-xs font-medium">直方图加载失败</span>
</div>