sumimakito / Awesome-qr.js

An awesome QR code generator written in JavaScript.

Home Page:https://www.bitcat.cc/webapp/awesome-qr/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

关于code length overflow. (1684>1056)

35860368 opened this issue · comments

commented

在text的内容url地址而且长度过长的时候会出现标题中的错误信息,请问有办法解决此列问题吗

你好,使用 Node 版和浏览器适用的版本测试长达 2150 字符的字符串暂未发现问题。
可以提供一下欲编码的 URL 长度为多少字符以及使用的版本吗?

commented

node 版本8.4.0,vue-qr版本1.2.3,下图未报错的信息,和打印的报错的url
tim 20171222162618
tim 20171222162625
报错导致二维码生成失败
其他的url地址都可以正常生产二维码图片

长度溢出的问题应该已经修复过了,尝试用 npm remove vue-qr; npm install vue-qr 来更新一下它的依赖,这个 Vue-qr 很有可能是在问题被修复之前安装的。

commented

好的,谢谢。
请问安装npm Awesome-qr.js的时候需要window的那些运行库,因为我在安装vue-qr的时候用到了canvas,
说我缺少了Warning: Missing input files:
C:\GTK\bin\zlib1.dll
C:\GTK\bin\libexpat-1.dll
C:\GTK\bin\libpng14-14.dll
C:\GTK\bin\libcairo-2.dll
C:\GTK\bin\libfontconfig-1.dll
C:\GTK\bin\libfreetype-6.dll
在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Platform.targets(54,5): error MSB8020: The build tools for Visual St
udio 2012 (Platform Toolset = 'v110') cannot be found. To build using the v110 build tools, please install Visual Studio 2012 build tools

可以参考一下 node-canvas 给出的 Windows 依赖安装指南 https://github.com/Automattic/node-canvas/wiki/Installation---Windows