From 0837c6143ac9d8000a91044b988d37777c698a9d Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期三, 01 四月 2026 17:14:20 +0800
Subject: [PATCH] fix: 备件库跟设备维修和设备保养关联

---
 src/components/qiun-data-charts/components/qiun-data-charts/qiun-data-charts.vue |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/components/qiun-data-charts/components/qiun-data-charts/qiun-data-charts.vue b/src/components/qiun-data-charts/components/qiun-data-charts/qiun-data-charts.vue
index bdcbb9f..96734e8 100644
--- a/src/components/qiun-data-charts/components/qiun-data-charts/qiun-data-charts.vue
+++ b/src/components/qiun-data-charts/components/qiun-data-charts/qiun-data-charts.vue
@@ -869,7 +869,10 @@
         const ctx = cfu.option[cid].context;
         if(typeof ctx === "object" && !!!cfu.option[cid].update){
           ctx.clearRect(0, 0, this.cWidth*this.pixel, this.cHeight*this.pixel);
-          ctx.draw();
+          // 鏃х増 canvas 闇� draw() 涓婂睆锛沜anvas2d 鐨� CanvasRenderingContext2D 鏃� draw 鏂规硶
+          if (typeof ctx.draw === 'function') {
+            ctx.draw();
+          }
         }
       }
     },

--
Gitblit v1.9.3