fix(fe): 修社区图片撑破网格;发帖限 3 张;上传偶发失败自动重试
- .photo-tile 补 width:100%+min-width:0:微信 image 默认 320x240, 不给宽高会冲破 photo-grid(社区帖子图片"爆炸") - 发帖图片上限从 9 张改成 3 张 - uploadFile 三重兜底:冷启动没 token 先续期、40100 续期重试、 网络/网关瞬时错误自动重试一次(后端 MD5 去重,重传安全) Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -539,8 +539,8 @@ Component({
|
||||
api.getTasks(id).then((tasks) => this.setData({ manageTasks: tasks || [] })).catch(() => {});
|
||||
},
|
||||
onPickPostImages() {
|
||||
const left = 9 - this.data.postImages.length;
|
||||
if (left <= 0) return wx.showToast({ title: '最多 9 张', icon: 'none' });
|
||||
const left = 3 - this.data.postImages.length;
|
||||
if (left <= 0) return wx.showToast({ title: '最多 3 张', icon: 'none' });
|
||||
upload
|
||||
.chooseAndUploadImages(left)
|
||||
.then((list) => this.setData({ postImages: this.data.postImages.concat(list) }))
|
||||
|
||||
Reference in New Issue
Block a user