mirror of
https://github.com/rustfs/console.git
synced 2026-09-24 16:30:56 +08:00
20 lines
513 B
Vue
20 lines
513 B
Vue
<template>
|
|
<object-task-stats :tasks="tasks" processing-status="uploading" :on-clear-tasks="clearTasks">
|
|
<template #task-list="{ tasks }">
|
|
<object-upload-task-list :tasks="tasks" />
|
|
</template>
|
|
</object-task-stats>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { computed } from 'vue'
|
|
import { useUploadTaskManagerStore } from '~/store/upload-tasks'
|
|
|
|
const store = useUploadTaskManagerStore()
|
|
const tasks = computed(() => store.tasks)
|
|
|
|
const clearTasks = () => {
|
|
store.clearTasks()
|
|
}
|
|
</script>
|