Skip to content

Commit

Permalink
fix(components): fix input paste element encoding, fix #324
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Apr 17, 2024
1 parent 558fd2e commit 95bbc19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/components/client/chat/input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function handleDataTransfer(event: Event, transfer: DataTransfer) {
const reader = new FileReader()
reader.addEventListener('load', function () {
emit('send', segment(type, { url: reader.result }).toString())
emit('send', segment(type, { src: reader.result }).toString())
}, false)
reader.readAsDataURL(file)
}
Expand Down
2 changes: 1 addition & 1 deletion plugins/console/src/node/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ declare module 'koishi' {

export * from '@koishijs/console'

interface ClientConfig {
export interface ClientConfig {
devMode: boolean
uiPath: string
endpoint: string
Expand Down

0 comments on commit 95bbc19

Please sign in to comment.