提交 d25c8f0e 编写于 作者: 雪洛's avatar 雪洛

fix: 修复 checkColor 接收 undefined 报错的Bug askId: 90328

上级 badada0e
......@@ -192,6 +192,8 @@ const predefinedColor = {
}
function checkColor (e) {
// 其他开发者适配的echarts会传入一个undefined到这里
e = e || '#000000'
var t = null
if ((t = /^#([0-9|A-F|a-f]{6})$/.exec(e)) != null) {
let n = parseInt(t[1].slice(0, 2), 16)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册