interface reqiestType = {
name?:string;
age?:number;
}
interface reqiestType {
name:string;
age:number;
}
const data:Partial<reqiestType> = {};
router.beforeEach((to, from, next) => {
const auth = getAuth()
auth.onAuthStateChanged(user => {
if (!user && to.path !== '/auth') {
next('/auth')
}
else if (user && to.path === '/auth') {
next(from.path)
}
next()
})
})
<FormKit v-for="(deadline_type, idx) in data.deadline_types" key="deadline_type.id"
type="date"
v-model="form[idx]deadline_type.code"
:label="deadline_type.name"
/>
<input :value="text" @input="addCurrentValue"/>