mirror of https://github.com/halo-dev/halo
fix: attachment list can't to display images with space path (halo-dev/console#474)
Signed-off-by: Ryan Wang <i@ryanc.cc>pull/3445/head
parent
1313663001
commit
7981b6444e
|
@ -72,7 +72,7 @@
|
||||||
<span v-if="!isImage(item)" class="attachments-group-item-type">{{ item.suffix }}</span>
|
<span v-if="!isImage(item)" class="attachments-group-item-type">{{ item.suffix }}</span>
|
||||||
<span
|
<span
|
||||||
v-else
|
v-else
|
||||||
:style="`background-image:url(${item.thumbPath})`"
|
:style="`background-image:url(${encodeURI(item.thumbPath)})`"
|
||||||
class="attachments-group-item-img"
|
class="attachments-group-item-img"
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -85,7 +85,7 @@
|
||||||
<span v-if="!isImage(item)" class="attachments-group-item-type">{{ item.suffix }}</span>
|
<span v-if="!isImage(item)" class="attachments-group-item-type">{{ item.suffix }}</span>
|
||||||
<span
|
<span
|
||||||
v-else
|
v-else
|
||||||
:style="`background-image:url(${item.thumbPath})`"
|
:style="`background-image:url(${encodeURI(item.thumbPath)})`"
|
||||||
class="attachments-group-item-img"
|
class="attachments-group-item-img"
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in New Issue