Skip to content

Commit

Permalink
fix: 修改错误
Browse files Browse the repository at this point in the history
  • Loading branch information
mengdu committed Mar 21, 2024
1 parent 510529d commit 354f3a4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion playground/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useState } from 'react'
import { ImageCropper } from '../../src'

function App() {
const [img, setImg] = useState('/demo.png')
const [img, setImg] = useState('./demo.png')
const [blob, setBlob] = useState<Blob | null>()
const handleFile = (e: React.ChangeEvent<HTMLInputElement>) => {
const file = e.target.files && e.target.files[0]
Expand Down
1 change: 0 additions & 1 deletion src/cropper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,6 @@ export default function ImageCropper(props: ImageCropperProps) {
}, [props.size?.w, props.size?.h])

useEffect(() => {
console.log(2, props.src)
getImageSize(props.src).then(res => {
setImg({
src: props.src,
Expand Down

0 comments on commit 354f3a4

Please sign in to comment.