@@ -240,6 +240,9 @@ function takePictures() {
}
+onMounted(()=>{
+ showVideo()
+})
/**
* 页面卸载时移除所有事件监听器。
@@ -216,6 +216,10 @@ const close = ()=>{
* 保存当前编辑的配置。
*/
const saveRow = () => {
+ if(!editRowData.value.action_name){
+ ElMessage.error('请输入动作名称')
+ return;
+ }
clientStore.ipc.send(icpList.setting.saveDeviceConfig, {
...editRowData.value
});