Skip to content

Commit f779a93

Browse files
committed
* fix the value of hydrationStore.isHydratingOrSSR that controls should wrap <img> within <a> remains true after https://github.com/mirari/v-viewer/blob/9d51fe98f9d2b5d7c836a637cbb3b11d20bf4899/src/directive.ts#L10 so when clicking on the hydrated <img> without being wrapped in <a>, it won't match with the original <img> that being wrapped in <a> while SSR and before hydrate, which stored in this.images at https://github.com/fengyuanchen/viewerjs/blob/94eb0ce2d9c663dbcc4387527b36e2f4b2852b72/src/js/viewer.js#L187 @ components/post/renderer/Content.vue
@ fe/src
1 parent bd60b09 commit f779a93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fe/src/components/post/renderer/Content.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div v-viewer.static>
2+
<div v-viewer>
33
<!-- eslint-disable-next-line vue/no-unused-vars -->
44
<DefineUGCImage v-slot="{ $slots, src, ...attrs }">
55
<NuxtLink v-if="hydrationStore.isHydratingOrSSR" :to="src" target="_blank">

0 commit comments

Comments
 (0)