Explorar el Código

fix: 解决列表图片展示缓存问题

奔跑的面条 hace 3 años
padre
commit
2917cde2e5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/views/project/items/components/ProjectItemsCard/index.vue

+ 1 - 1
src/views/project/items/components/ProjectItemsCard/index.vue

@@ -17,7 +17,7 @@
             object-fit="contain"
             height="180"
             preview-disabled
-            :src="cardData.image"
+            :src="`${cardData.image}?time=${new Date().getTime()}`"
             :alt="cardData.title"
             :fallback-src="requireErrorImg()"
          ></n-image>