Skip to content

Commit

Permalink
fix: 删除多余的日志
Browse files Browse the repository at this point in the history
  • Loading branch information
sj817 committed Feb 18, 2025
1 parent f940668 commit 0fe8833
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
15 changes: 1 addition & 14 deletions packages/web/src/components/heroui/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,27 +36,14 @@ export function renders (
const proxy = new Proxy(result, {
set: (target, prop, value) => {
target[prop as keyof typeof target] = value
console.log('set-target', typeof target, target)
console.log('set-prop', typeof prop, prop)
console.log('set-value', typeof value, value)
onChange(result)
return true
},
get: (target, prop, receiver) => {
console.log('get-target', typeof target, target)
console.log('get-prop', typeof prop, prop)
console.log('get-receiver', typeof receiver, receiver)
// onChange(result)
get: (target, prop) => {
return target[prop as keyof typeof target]
}
})

// 每5秒打印一次result
setInterval(() => {
console.log('result', result)
}, 5000)


options.forEach(item => {
if (item.componentType === 'input') {
return list.push(Input(item, proxy as Result<'input'>))
Expand Down
1 change: 0 additions & 1 deletion packages/web/src/components/plugin/config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ export const PluginConfig = memo(({ open, name, type, onClose }: PluginConfigPro
}, [open, handleGetConfig])

const handleConfigChange = useCallback((result: Record<string, any>) => {
console.log('handleConfigChange:', result)
configDataRef.current = result
}, [])

Expand Down

0 comments on commit 0fe8833

Please sign in to comment.