Просмотр исходного кода

refactor(live-stream): streamline table and drawer component formatting

- Consolidated attributes in the el-table, el-pagination, and el-drawer components for improved readability and consistency.
- Reduced unnecessary line breaks and enhanced overall code formatting across the live-stream view.
- Improved user experience by maintaining a clean and organized structure in the component layout.
yb 1 неделя назад
Родитель
Сommit
5e8788866b
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      src/views/live-stream/index.vue

+ 4 - 4
src/views/live-stream/index.vue

@@ -730,12 +730,12 @@ async function handleSubmit() {
           const res = await addLiveStream({
             name: form.name,
             lssId: form.lssId,
-            cameraId: form.cameraId || undefined,
+            cameraId: form.cameraId,
             channelId: form.channelId,
-            pushMethod: form.pushMethod || undefined,
-            commandTemplate: form.commandTemplate || undefined,
+            pushMethod: form.pushMethod,
+            commandTemplate: form.commandTemplate,
             timeoutSeconds: form.timeoutSeconds,
-            remark: form.remark || undefined
+            remark: form.remark
           })
           if (res.success) {
             ElMessage.success(t('新增成功'))