Explorar el Código

fix(bugs): 修改直播间报错

tangning hace 4 años
padre
commit
e0ece637d6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/views/scenes/liveDrawer.vue

+ 1 - 1
src/views/scenes/liveDrawer.vue

@@ -393,7 +393,7 @@
             console.error(error);
           }
         }
-        myData.id = record.id || false;
+        myData.id = (record && record.id) || false;
         initMap();
       });