Przeglądaj źródła

mod:动作名称

panqiuyao 7 miesięcy temu
rodzic
commit
28f424e053

+ 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
   });