解决pg-error问题,demo数据注入
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user