Skip to content

Commit

Permalink
Merge branch 'chatflow'
Browse files Browse the repository at this point in the history
  • Loading branch information
atorber committed Dec 13, 2023
2 parents c080297 + 2970aef commit 7afb793
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ChatFlowConsole",
"private": true,
"version": "0.6.2",
"version": "0.6.3",
"main": "electron/main.js",
"scripts": {
"dev": "vite --mode development",
Expand Down
4 changes: 2 additions & 2 deletions src/api/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ export const ServeGetRecordsContext = (data = {}) => {
return get('/api/v1/talk/get-records-context', data)
}

// 发送代码块消息服务接口
// 发送消息服务接口
export const ServePublishMessage = (data = {}) => {
return post('/api/v1/talk/message/publish', data)
}

// 发送代码块消息服务接口
// 发送文本消息服务接口
export const ServeSendTalkText = (data = {}) => {
return post('/api/v1/talk/message/text', data)
}
Expand Down
6 changes: 3 additions & 3 deletions src/views/message/inner/panel/PanelFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const onSendTextEvent = throttle((value: any) => {
callBack(true)
})
}, 1000)
}, 3000)
// 发送图片消息
const onSendImageEvent = ({ data, callBack }) => {
Expand Down Expand Up @@ -136,9 +136,9 @@ const onSendCodeEvent = ({ data, callBack }) => {
// 发送文件消息
const onSendFileEvent = ({ data }) => {
let maxsize = 200 * 1024 * 1024
let maxsize = 10 * 1024 * 1024
if (data.size > maxsize) {
return window['$message'].warning('上传文件不能超过100M!')
return window['$message'].warning('上传文件不能超过10M!')
}
uploadsStore.initUploadFile(data, props.talk_type, props.receiver_id, dialogueStore.talk.username)
Expand Down
20 changes: 10 additions & 10 deletions src/views/setting/layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ const menus = [
path: '/settings/config',
icon: Tool
},
{
name: '个人中心',
path: '/settings/detail',
icon: User
},
{
name: '安全设置',
path: '/settings/security',
icon: Protect
},
// {
// name: '个人中心',
// path: '/settings/detail',
// icon: User
// },
// {
// name: '安全设置',
// path: '/settings/security',
// icon: Protect
// },
{
name: '个性设置',
path: '/settings/personalize',
Expand Down

0 comments on commit 7afb793

Please sign in to comment.