解决pg-error问题,demo数据注入

This commit is contained in:
Cheng Zhou
2025-12-17 22:22:37 +08:00
parent 42d89eda51
commit 5d3e8667fc
85 changed files with 77 additions and 78 deletions
+1 -2
View File
@@ -23,7 +23,6 @@
<script setup lang="ts">
import { computed, reactive, ref } from "vue";
import { format } from "date-fns";
import type { FormInstance, FormRules } from "element-plus";
import { ElMessage } from "element-plus";
import { createSubject } from "../api/subjects";
@@ -68,7 +67,7 @@ const resetForm = () => {
const recentSubject = studyId ? localStorage.getItem(`recent_subject_${studyId}`) : null;
form.site_id = recentSite || "";
form.subject_no = recentSubject || "";
form.screening_date = format(new Date(), "yyyy-MM-dd");
form.screening_date = new Date().toISOString().slice(0, 10);
};
const onSubmit = async () => {