Browse Source

perf: 修复点添加摄像头节点报错问题

曾坤森 1 month ago
parent
commit
4736641f8d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/views/dashboard/camera/edit.vue

+ 2 - 1
src/views/dashboard/camera/edit.vue

@@ -138,7 +138,7 @@ function onAddClick(nodeData: CameraRouteList) {
   if (nodeData.children && nodeData.children.length > 0) {
     routeStr.value = nodeData.children.find(
       item => item.description
-    ).description;
+    )?.description;
   }
   cameraId.value = 0;
   showCameraDialog.value = true;
@@ -170,6 +170,7 @@ function updateFun() {
 </script>
 <style lang="less" scoped>
 .container {
+  flex: 1;
   padding: 10px 10px 20px;
 
   // 注意这里的空行是重要的