likaia / js-screen-shot

web端自定义截图插件(原生JS版)
https://www.kaisir.cn/js-screen-shot/
MIT License
808 stars 107 forks source link

从1.9.8-rc.2升级到1.9.9之后,由于completeCallback返回值变化导致框选后点击确认按钮(√)报错 #145

Closed TY-LIU closed 9 months ago

TY-LIU commented 9 months ago

Version of js-screen-shot

1.9.9

Operating system and its version

Windows

Browser and its version

No response

Sandbox to reproduce

No response

What happened?

在1.9.8-rc.2版本的时候completeCallback回调函数返回值就是一个base64字符串,在升级之后,这个方法返回值变成了object,导致之前直接用返回值.split(';base64,');报没有split这个方法的错误,截图失败。 image

请在升级记录里面加入破坏式更新说明。

建议声明文件里面加入接口提示

改前 image 改后 image

报错信息

No response

likaia commented 9 months ago

Hello @TY-LIU. Your feedback has been received, and you will be notified in the issue area when the problem is resolved. 你好 @TY-LIU,已收到你反馈的问题,问题解决后将在issue区域通知你。

likaia commented 9 months ago

Version of js-screen-shot

1.9.9

Operating system and its version

Windows

Browser and its version

No response

Sandbox to reproduce

No response

What happened?

在1.9.8-rc.2版本的时候completeCallback回调函数返回值就是一个base64字符串,在升级之后,这个方法返回值变成了object,导致之前直接用返回值.split(';base64,');报没有split这个方法的错误,截图失败。 image

请在升级记录里面加入破坏式更新说明。

建议声明文件里面加入接口提示

改前 image 改后 image

报错信息

No response

抱歉,我没考虑周到,我在日志里加一下,后面发版时我注意下。