@@ -274,10 +274,10 @@
:title="`打开 ${file.name}`"
@click="openPanelPreview(file)"
>
-
{{ file.name }}
@@ -362,7 +362,8 @@ import {
} from 'vue'
import { message } from 'ant-design-vue'
import { RefreshCw, SquareCheck } from 'lucide-vue-next'
-import { getFileIcon, getFileIconColor, formatFileSize } from '@/utils/file_utils'
+import { formatFileSize } from '@/utils/file_utils'
+import FileTypeIcon from '@/components/common/FileTypeIcon.vue'
import { generatePixelAvatar } from '@/utils/pixelAvatar'
import {
CheckCircleOutlined,
@@ -720,9 +721,7 @@ const currentArtifactFiles = computed(() =>
.map((path) => ({
path,
name: getPanelFileName({ path }),
- meta: getArtifactMetaLabel(path),
- icon: getFileIcon(path),
- iconColor: getFileIconColor(path)
+ meta: getArtifactMetaLabel(path)
}))
)
const currentTodos = computed(() => {
@@ -780,9 +779,7 @@ const currentStateFiles = computed(() => {
key: path,
path,
name,
- meta: [status, sizeLabel === '-' ? '' : sizeLabel, path].filter(Boolean).join(' · '),
- icon: getFileIcon(name || path),
- iconColor: getFileIconColor(name || path)
+ meta: [status, sizeLabel === '-' ? '' : sizeLabel, path].filter(Boolean).join(' · ')
})
}
diff --git a/web/src/components/AgentFilePreview.vue b/web/src/components/AgentFilePreview.vue
index c3678426..a7fa9bcb 100644
--- a/web/src/components/AgentFilePreview.vue
+++ b/web/src/components/AgentFilePreview.vue
@@ -5,11 +5,7 @@
>