feat: 修复BUG

This commit is contained in:
zhang1106
2026-03-16 17:07:20 +08:00
parent 8dcbe9948b
commit e5d20820dc
26 changed files with 2363 additions and 1004 deletions
@@ -353,7 +353,7 @@ const InventoryTaskExecution = () => {
size="large"
style={inputStyle}
>
{(options || [
{(Array.isArray(options) && options.length > 0 ? options : [
{ value: 'server', label: '服务器' },
{ value: 'switch', label: '交换机' },
{ value: 'router', label: '路由器' },
@@ -396,7 +396,7 @@ const InventoryTaskExecution = () => {
size="large"
style={inputStyle}
>
{(options || []).map(opt => (
{(Array.isArray(options) ? options : []).map(opt => (
<Select.Option key={opt.value} value={opt.value}>
{opt.label}
</Select.Option>
@@ -868,7 +868,7 @@ const InventoryTaskExecution = () => {
const pageContainerStyle = {
padding: '24px',
background: designTokens.colors.bg,
background: designTokens.colors.background.secondary,
minHeight: '100vh',
};