xiongzhu 2 năm trước cách đây
mục cha
commit
cb81800744
2 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 1 1
      src/views/HomeView.vue
  2. 3 3
      src/views/LogsView.vue

+ 1 - 1
src/views/HomeView.vue

@@ -104,7 +104,7 @@ function createTask() {
                 await http.put('/tasks', {
                     accounts: selected().map((i) => i.id),
                     params: {
-                        mintAmount: createTaskForm.value.mintAmount,
+                        minAmount: createTaskForm.value.minAmount,
                         maxAmount: createTaskForm.value.maxAmount
                     },
                     type: createTaskForm.value.type,

+ 3 - 3
src/views/LogsView.vue

@@ -49,9 +49,9 @@ import { RotateClockwise } from '@vicons/tabler'
 const timeFormatter = useTimeFormatter()
 const taskTypeFormatter = useEnumFormatter(TaskType)
 const pt = ref(null)
-// useIntervalFn(() => {
-//     pt.value && pt.value.refresh()
-// }, 2000)
+useIntervalFn(() => {
+    pt.value && pt.value.refresh()
+}, 2000)
 function progressFormatter(row, column, value, index) {
     return `${value + 1}/${row.accounts.length}`
 }