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