Showing
1 changed file
with
7 additions
and
0 deletions
| @@ -104,6 +104,13 @@ | @@ -104,6 +104,13 @@ | ||
| 104 | try { | 104 | try { |
| 105 | const { createMessage } = useMessage(); | 105 | const { createMessage } = useMessage(); |
| 106 | const values = await validate(); | 106 | const values = await validate(); |
| 107 | + if (values.name == undefined || values.name == '') | ||
| 108 | + return createMessage.error('请填写视频名字'); | ||
| 109 | + if (values.sn == undefined || values.sn == '') | ||
| 110 | + return createMessage.error('请填写摄像头编号'); | ||
| 111 | + if (values.videoUrl == undefined || values.videoUrl == '') | ||
| 112 | + return createMessage.error('请填写视频流'); | ||
| 113 | + if (!values) return; | ||
| 107 | if (tenantLogo.value !== '') { | 114 | if (tenantLogo.value !== '') { |
| 108 | values.avatar = tenantLogo.value; | 115 | values.avatar = tenantLogo.value; |
| 109 | } | 116 | } |