fix(fe2): panoramic previews not triggering on hover (#2457)
* fix(fe2): panoramic previews not triggering on hover * undo dev change
This commit is contained in:
committed by
GitHub
parent
15e9ad9462
commit
e73c2c3d4f
@@ -183,7 +183,7 @@ export function usePreviewImageBlob(
|
||||
|
||||
let blobUrl: string
|
||||
if (enableDirectPreviews || import.meta.server) {
|
||||
const blobUrlConfig = new URL(basePreviewUrl)
|
||||
const blobUrlConfig = new URL(basePanoramaUrl.value)
|
||||
blobUrlConfig.searchParams.set('v', cacheBust.value.toString())
|
||||
blobUrl = blobUrlConfig.toString()
|
||||
} else {
|
||||
@@ -231,7 +231,7 @@ export function usePreviewImageBlob(
|
||||
const regeneratePreviews = (basePreviewUrl?: string) => {
|
||||
cacheBust.value++
|
||||
processBasePreviewUrl(basePreviewUrl || unref(previewUrl))
|
||||
if (shouldLoadPanorama) processPanoramaPreviewUrl()
|
||||
if (shouldLoadPanorama.value) processPanoramaPreviewUrl()
|
||||
}
|
||||
|
||||
watch(shouldLoadPanorama, (newVal) => {
|
||||
|
||||
Reference in New Issue
Block a user