fix(web): 修复 MCP 卡片图标类型警告
移除 MCP 卡片无效的默认图标传参,并允许 InfoCard 接收函数组件图标。
This commit is contained in:
parent
f87b763b7b
commit
22fbcb586c
@ -33,7 +33,6 @@
|
||||
:title="server.name"
|
||||
:subtitle="server.transport"
|
||||
:description="server.description || '暂无描述'"
|
||||
:default-icon="PlugIcon"
|
||||
:tags="mcpTags(server)"
|
||||
:status="{ label: '已添加', level: 'success' }"
|
||||
@click="navigateToDetail(server)"
|
||||
@ -52,7 +51,6 @@
|
||||
:title="server.name"
|
||||
:subtitle="server.transport"
|
||||
:description="server.description || '暂无描述'"
|
||||
:default-icon="PlugIcon"
|
||||
:tags="mcpTags(server)"
|
||||
action-label="添加"
|
||||
@click="navigateToDetail(server)"
|
||||
@ -77,15 +75,13 @@
|
||||
import { ref, computed, onMounted } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { message } from 'ant-design-vue'
|
||||
import { Plus, RefreshCw, Plug } from 'lucide-vue-next'
|
||||
import { Plus, RefreshCw } from 'lucide-vue-next'
|
||||
import { mcpApi } from '@/apis/mcp_api'
|
||||
import ExtensionCardGrid from './ExtensionCardGrid.vue'
|
||||
import InfoCard from '@/components/shared/InfoCard.vue'
|
||||
import PageShoulder from '@/components/shared/PageShoulder.vue'
|
||||
import McpFormModal from './McpFormModal.vue'
|
||||
|
||||
const PlugIcon = Plug
|
||||
|
||||
const router = useRouter()
|
||||
|
||||
const loading = ref(false)
|
||||
|
||||
@ -77,7 +77,7 @@ const props = defineProps({
|
||||
description: { type: String, default: '' },
|
||||
info: { type: Array, default: () => [] },
|
||||
disabled: { type: Boolean, default: false },
|
||||
defaultIcon: { type: [Object, String], default: () => Plug },
|
||||
defaultIcon: { type: [Object, String, Function], default: () => Plug },
|
||||
tags: { type: Array, default: () => [] },
|
||||
status: { type: Object, default: null },
|
||||
actionLabel: { type: String, default: '' },
|
||||
|
||||
Loading…
Reference in New Issue
Block a user