Browse Source

fix(views): 修复预览时报错的问题

wangcong 2 weeks ago
parent
commit
5ee4f9e80b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/Preview.vue

+ 1 - 1
src/views/Preview.vue

@@ -185,7 +185,7 @@ const open = async () => {
       if(!ret.data.height){ret.data.height= 1080};
       meta2d.open(ret.data);
 
-      if (meta2d.store.data.dataPoints.length) {
+      if (meta2d.store.data.dataPoints?.length) {
         getRealTimeData()
       }
     }