From eed6c8ea72f0153a859064123f1dd0d005f73de7 Mon Sep 17 00:00:00 2001
From: Tevin <tingquanren@163.com>
Date: Wed, 20 Mar 2024 17:03:53 +0800
Subject: [PATCH] 修复图片预览组件,多个缩略图异常回退时,显示异常的问题

---
 plugins/echarts/CECharts.weapp.vue |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/plugins/echarts/CECharts.weapp.vue b/plugins/echarts/CECharts.weapp.vue
index 59d43d6..7fc585a 100644
--- a/plugins/echarts/CECharts.weapp.vue
+++ b/plugins/echarts/CECharts.weapp.vue
@@ -38,7 +38,8 @@
     props: {
         canvasId: {
             type: String,
-            default: 'ec-canvas-' + ++canvasCount + '-' + parseInt(Math.random() * 10000),
+            default: () =>
+                'ec-canvas-' + ++canvasCount + '-' + parseInt(Math.random() * 10000),
         },
         disableTouch: {
             type: Boolean,

--
Gitblit v1.9.1