We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
src/components/LoginForm.jsx中的一段代码 L29 ,代码如下:
function onImageClick() { Taro.previewImage({ urls: [props.files[0].url], }) }
其中 urls: [props.files[0].url] 应该是 urls: [files[0].url]
urls: [props.files[0].url]
urls: [files[0].url]
The text was updated successfully, but these errors were encountered:
@lishaoqun 你好,这里我们使用了 React Hooks 哦,在 LoginForm.jsx 组件中定义了 files 的 state,所以可以直接使用
LoginForm.jsx
files
Sorry, something went wrong.
No branches or pull requests
问题描述
src/components/LoginForm.jsx中的一段代码 L29 ,代码如下:
其中
urls: [props.files[0].url]
应该是urls: [files[0].url]
The text was updated successfully, but these errors were encountered: