Reset data before filtering

This commit is contained in:
Dede Fuji Abdul
2024-03-31 00:33:46 +07:00
parent 3612a6cf66
commit f2dd2af2bb
45 changed files with 262 additions and 0 deletions

View File

@@ -550,7 +550,12 @@ const onExporting = (e: any) => {
const data = ref<any[]>([])
const loading = ref(false)
const resetData = () => {
data.value = []
}
const filterData = async (params: any) => {
resetData()
const dateValue = params.periode.split(' s/d ')
const { ulp, uid, up3, minTime, maxTime } = params