Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(image): use taro-image to avoid type error #155

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

j10ccc
Copy link
Collaborator

@j10ccc j10ccc commented Nov 12, 2024

vue official 插件会给 image 识别成 h5 的 element,比小程序环境下的 image 组件少了一些属性,比如说 onLoad 事件。代码中在 src/pages/lostfound/PreviewCard/index.vue 这个组件中用到了。

为了避免类型问题,以及减少后续开发的误导性,给所有 image 组件替换成 taro-image

@j10ccc j10ccc merged commit 17554ab into zjutjh:refactor/state-manage-hookify Nov 12, 2024
1 check passed
@j10ccc j10ccc deleted the chore/image branch November 14, 2024 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant