✨ feat(frontend): 新增上传中断并联动历史回收状态
This commit is contained in:
1 parent
a962f7aec7
commit
e7918e9317
20 files changed
+275
-71
No files matched your search
@@ -1704,6 +1704,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { getHistoryStatusLabel } from '@/utils/history-status'
|
||||
import { computed, nextTick, onMounted, onUnmounted, ref, watch, type Component } from 'vue'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { useRoute, useRouter } from 'vue-router'
|
||||
@@ -2057,12 +2058,6 @@ const handleHistoryPageSizeChange = (size: number) => {
|
||||
const formatHistoryBytes = (value: number | string | undefined) =>
|
||||
formatFileSize(Number(value || 0), 1)
|
||||
const formatHistoryDate = (value?: string) => (value ? formatTimestamp(value) : '-')
|
||||
const getHistoryStatusLabel = (file: AnalyticsFileRow) => {
|
||||
if (file.deleted) return '已删除'
|
||||
if (file.expired) return '已过期'
|
||||
if (file.current) return '现存'
|
||||
return '历史'
|
||||
}
|
||||
|
||||
const primaryTextClass = computed(() => (isDarkMode.value ? 'text-white' : 'text-gray-900'))
|
||||
const mutedTextClass = computed(() => (isDarkMode.value ? 'text-gray-400' : 'text-gray-500'))
|
||||
|
||||
Reference in new issue
Block a user