Explorar o código

refactor(live-stream): enhance component formatting for improved readability

- Consolidated attributes in various components, including el-table, el-drawer, and el-pagination, to streamline code structure.
- Reduced unnecessary line breaks and improved overall formatting for a cleaner layout across the live-stream view.
- Ensured consistent usage of component properties to enhance maintainability and readability.
yb hai 1 semana
pai
achega
65dce53a6d
Modificáronse 1 ficheiros con 13 adicións e 13 borrados
  1. 13 13
      src/views/live-stream/index.vue

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

@@ -667,19 +667,19 @@ async function handleDelete(row: LiveStreamDTO) {
     return
   }
 
-  // 检查 stoppedAt 必须超过 24 小时
-  if (row.stoppedAt) {
-    const stoppedTime = dayjs(row.stoppedAt)
-    const hoursDiff = dayjs().diff(stoppedTime, 'hour')
-    if (hoursDiff < 24) {
-      ElMessage.warning(t('停止时间未超过24小时,暂时无法删除'))
-      return
-    }
-  } else {
-    // 没有 stoppedAt 时间,不允许删除
-    ElMessage.warning(t('停止时间未超过24小时,暂时无法删除'))
-    return
-  }
+  // // 检查 stoppedAt 必须超过 24 小时
+  // if (row.stoppedAt) {
+  //   const stoppedTime = dayjs(row.stoppedAt)
+  //   const hoursDiff = dayjs().diff(stoppedTime, 'hour')
+  //   if (hoursDiff < 24) {
+  //     ElMessage.warning(t('停止时间未超过24小时,暂时无法删除'))
+  //     return
+  //   }
+  // } else {
+  //   // 没有 stoppedAt 时间,不允许删除
+  //   ElMessage.warning(t('停止时间未超过24小时,暂时无法删除'))
+  //   return
+  // }
 
   try {
     await ElMessageBox.confirm(t('确定要删除该 Live Stream 吗?'), t('提示'), {