Commit 7cb181d8 authored by techird's avatar techird

png export error alert

parent c1b14b9f
......@@ -111,8 +111,12 @@ if (!kity.Browser.ie) {
}
function generateDataUrl(canvas) {
try {
var url = canvas.toDataURL('png');
return url;
} catch (e) {
throw new Error('当前浏览器版本不支持导出 PNG 功能,请尝试升级到最新版本!');
}
}
function drawSVG() {
......
......@@ -14,6 +14,7 @@
textarea {
user-select: text;
}
overflow: hidden;
}
input::-ms-clear {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment