diff --git a/web2/src/views/project/New.vue b/web2/src/views/project/New.vue index 67d57660..38bb68ec 100644 --- a/web2/src/views/project/New.vue +++ b/web2/src/views/project/New.vue @@ -8,7 +8,7 @@
- +
@@ -33,20 +33,20 @@ export default { }, methods: { - showDrawer() { - EventBus.$emit('i-show-drawer'); - }, - - async createProject() { - const item = await this.$refs.editForm.save(); - if (!item) { - return; - } + onSave(item) { EventBus.$emit('i-project', { action: 'new', item, }); }, + + showDrawer() { + EventBus.$emit('i-show-drawer'); + }, + + async createProject() { + await this.$refs.editForm.save(); + }, }, };