浏览代码

mod:动作名称

panqiuyao 7 月之前
父节点
当前提交
28f424e053
共有 2 个文件被更改,包括 7 次插入0 次删除
  1. 3 0
      frontend/src/views/Photography/check.vue
  2. 4 0
      frontend/src/views/Photography/components/editRow.vue

+ 3 - 0
frontend/src/views/Photography/check.vue

@@ -240,6 +240,9 @@ function takePictures() {
   }
 }
 
+onMounted(()=>{
+  showVideo()
+})
 
 /**
  * 页面卸载时移除所有事件监听器。

+ 4 - 0
frontend/src/views/Photography/components/editRow.vue

@@ -216,6 +216,10 @@ const close = ()=>{
  * 保存当前编辑的配置。
  */
 const saveRow = () => {
+  if(!editRowData.value.action_name){
+    ElMessage.error('请输入动作名称')
+    return;
+  }
   clientStore.ipc.send(icpList.setting.saveDeviceConfig, {
     ...editRowData.value
   });