소스 검색

fix(system): 修复创建新比赛时表单初始化问题

- 在初始化比赛表单时,将 status 设置为 0
- 添加 id 字段并设置为 null,确保创建新比赛时 ID 为空
fugui001 3 달 전
부모
커밋
d643d4f1cf
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/views/system/business/tournaments/index.vue

+ 1 - 0
src/views/system/business/tournaments/index.vue

@@ -1231,6 +1231,7 @@ const handleCopy = async (row?: TournamentsVO) => {
   form.value.signTime = String(res.data.signTime);
   form.value.gameType = String(res.data.gameType); // 转为字符串
   form.value.status = 0;
+  form.value.id = null;
   competitionIcon.value = res.data.competitionIcon;
   // 处理奖励表单数据
   const prizeItems = res.data.itemsPrizeList || [];