提交 6fac251c 编写于 作者: H huidengk

修改图片资源引用错误

Signed-off-by: Nhuidengk <huidengk@isoftstone.com>
上级 60ea9340
...@@ -277,7 +277,7 @@ ...@@ -277,7 +277,7 @@
struct FoodImageDisplay { struct FoodImageDisplay {
build() { build() {
Stack({ alignContent: Alignment.BottomStart }) { Stack({ alignContent: Alignment.BottomStart }) {
Image($m('Tomato.png')) Image($rawfile('Tomato.png'))
.objectFit(ImageFit.Contain) .objectFit(ImageFit.Contain)
.height(357) .height(357)
Text('Tomato') Text('Tomato')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册