diff --git a/src/views/rem/project.vue b/src/views/rem/project.vue index ae91767a..d2fe7358 100644 --- a/src/views/rem/project.vue +++ b/src/views/rem/project.vue @@ -67,6 +67,7 @@ const drawerVisible = ref(false); const mode = ref('add'); const t_id = ref(null); const handleAdd = () => { + t_id.value = null; mode.value = 'add'; drawerVisible.value = true; } diff --git a/src/views/rem/project_form.vue b/src/views/rem/project_form.vue index 301bdfd2..f6bbcd78 100644 --- a/src/views/rem/project_form.vue +++ b/src/views/rem/project_form.vue @@ -121,6 +121,20 @@ export default { this.localMode = newVal; } }, + beforeMount() { + this.formData = { + name: "", + description: "", + leader: null, + leader_name: "", + participants: "", + start_date: null, + end_date: null, + files: [], + files_: [], + note: "", + } + }, mounted() { if (this.t_id) { this.getTid();