@@ -102,8 +102,10 @@ export function useTable(
}
onMounted(() => {
- const length = tableName === 'flight' ? 8 : 3
- const defaultDataContent = Array.from({ length }, () => null)
+ const defaultDataContent =
+ tableName === 'flight'
+ ? [null, null, '2000-01-01', null, null, null, null, null]
+ : [null, null, null]
getTableData(defaultDataContent)
})