Remove initform mixin
This commit is contained in:
4
client/composables/forms/initForm.js
vendored
4
client/composables/forms/initForm.js
vendored
@@ -1,5 +1,5 @@
|
||||
|
||||
export const initForm = (options = {}) => {
|
||||
export const initForm = (defaultValue = {}) => {
|
||||
return useForm({
|
||||
title: 'My Form',
|
||||
description: null,
|
||||
@@ -49,6 +49,6 @@ export const initForm = (options = {}) => {
|
||||
// Custom SEO
|
||||
seo_meta: {},
|
||||
|
||||
...options
|
||||
...defaultValue
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user