diff --git a/web/.env b/web/.env index 7645f934..1db683f6 100644 --- a/web/.env +++ b/web/.env @@ -12,3 +12,10 @@ VITE_ALLOW_PHONE_BIND=true # 局部参数 VITE_DEFAULT_TWEET_VISIBILITY=public + +# 图片推文404参数 +VITE_DEFAULT_TWEET_IMAGE_404="https://paopao-assets.oss-cn-shanghai.aliyuncs.com/public/404.png" +# AliOSS 图片thumbnail参数 +VITE_TWEET_IMAGE_THUMBNAIL="?x-oss-process=image/resize,m_fill,w_300,h_300,limit_0/auto-orient,1/format,png" +# MinIOn 图片thumbnail参数 +# VITE_TWEET_IMAGE_THUMBNAIL="?x-oss-process=image/resize,m_fill,w_300,h_300,limit_0/auto-orient,1/format,png" diff --git a/web/src/components/post-image.vue b/web/src/components/post-image.vue index 179ed462..92595c50 100644 --- a/web/src/components/post-image.vue +++ b/web/src/components/post-image.vue @@ -225,10 +225,8 @@