fix: 修改图片组件不能动态更新的问题

This commit is contained in:
奔跑的面条
2022-06-26 15:35:40 +08:00
parent bf1b81e554
commit 633bf987ab
4 changed files with 41 additions and 26 deletions
+3 -3
View File
@@ -80,10 +80,10 @@ export default {
msg: '请求成功',
data: '@paragraph(1, 10)',
},
fetchImage: {
fetchImage: (num: number) => ({
code: 0,
status: 200,
msg: '请求成功',
data: `https://robohash.org/${Math.round(Math.random()*10)}`,
},
data: `https://robohash.org/${num}`,
}),
}