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

[Bug Report] 使用mpvue版本加上示例demo出现错误 #166

Open
lijibing01 opened this issue Feb 4, 2020 · 1 comment
Open

[Bug Report] 使用mpvue版本加上示例demo出现错误 #166

lijibing01 opened this issue Feb 4, 2020 · 1 comment

Comments

@lijibing01
Copy link

we-cropper 版本

"mpvue-cropper": "^0.2.3"

对应工具或者iOS或者Andriod的版本号

7.0.10

微信版本号

7.0.10

重现步骤

1、在uni-app中npm安装mpvue-cropper
2、使用Usage example示例组件
3、使用时能正确显示界面,但是选中相片后就会报错。

期待的行为

选中相片后能正常使用

实际的行为

选中相片后能出现js错误
thirdScriptError
Cannot read property 'pushOrign' of undefined;at api chooseImage success callback function
TypeError: Cannot read property 'pushOrign' of undefined
at VueComponent.pushOrigin (http://127.0.0.1:42198/appservice/node-modules/_mpvue-cropper@0.2.3@mpvue-cropper/mpvue-cropper.js:194:27)
at success (http://127.0.0.1:42198/appservice/pages/tone/avatar.js:252:25)
at Function.o.(anonymous function) (http://127.0.0.1:42198/appservice/__dev__/WAService.js:1:1182257)
at Object.success (http://127.0.0.1:42198/appservice/__dev__/WAService.js:1:108166)
at r (http://127.0.0.1:42198/appservice/__dev__/WAService.js:1:436734)
at http://127.0.0.1:42198/appservice/__dev__/WAService.js:1:436911
at v (http://127.0.0.1:42198/appservice/__dev__/WAService.js:1:436920)
at http://127.0.0.1:42198/appservice/__dev__/WAService.js:1:438362
at t. (http://127.0.0.1:42198/appservice/__dev__/asdebug.js:1:12078)
at http://127.0.0.1:42198/appservice/__dev__/WAService.js:1:108166

@JakeWoki
Copy link

JakeWoki commented Nov 5, 2020

mpvue-cropper.vue里的onLoad改成created试试,触摸的$event.mp可能也要改成$event.mpEvent

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

No branches or pull requests

2 participants