diff --git a/src/core/service/api/context/canvas.js b/src/core/service/api/context/canvas.js index a4452805660e3ed6e5789c9aa1a85d1791c319aa..c75ef87c5fada6c22584cc68e6f59d19b0632357 100644 --- a/src/core/service/api/context/canvas.js +++ b/src/core/service/api/context/canvas.js @@ -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)