fix: optimize

This commit is contained in:
wangdan-fit2cloud 2025-02-06 18:18:00 +08:00
parent 20865d53c3
commit c5880b8d13
5 changed files with 17 additions and 22 deletions

View File

@ -346,7 +346,7 @@ function chatMessage(chat?: any, problem?: string, re_chat?: boolean, other_para
} else if (response.status === 460) {
return Promise.reject(t('chat.tip.errorIdentifyMessage'))
} else if (response.status === 461) {
return Promise.reject('chat.tip.errorLimitMessage')
return Promise.reject(t('chat.tip.errorLimitMessage'))
} else {
nextTick(() => {
//

View File

@ -45,10 +45,10 @@ export default {
LimitDialog: {
dialogTitle: 'Access Restrictions',
showSourceLabel: 'Show Return Knowledge Reference',
clientQueryLimitLabel: 'Each Client Query Limit',
clientQueryLimitLabel: 'Limit the number of messages for each client',
authentication: 'Authentication',
authenticationValue: 'Authentication Password',
timesDays: 'Times/Day',
timesDays: 'messages per day',
whitelistLabel: 'Whitelist',
whitelistPlaceholder:
'Please enter allowed third-party source addresses, one per line, such as:\nhttp://127.0.0.1:5678\nhttps://dataease.io'
@ -67,10 +67,10 @@ export default {
customThemeColor: 'Custom Theme Color',
headerTitleFontColor: 'Header Title Font Color',
default: 'Default',
askUserAvatar: 'Ask User Avatar',
askUserAvatar: 'Questioner\'s Avatar',
replace: 'Replace',
imageMessage: 'Suggested size 32*32, supports jpg, png, gif, size no more than 10 MB',
AIAvatar: 'AI Reply Avatar',
AIAvatar: 'AI Avatar',
floatIcon: 'Floating Icon',
iconDefaultPosition: 'Icon Default Position',
iconPosition: {
@ -80,7 +80,7 @@ export default {
top: 'Top'
},
draggablePosition: 'Draggable Position',
showHistory: 'Show History',
showHistory: 'Show Chat History',
displayGuide: 'Display guide image (floating window mode)',
disclaimer: 'Disclaimer',
disclaimerValue:
@ -102,9 +102,9 @@ export default {
charts: {
customerTotal: 'Total Customers',
customerNew: 'New Customers',
queryCount: 'Query Count',
queryCount: 'Total Chats',
tokensTotal: 'Total Tokens',
userSatisfaction: 'User Satisfaction',
userSatisfaction: 'User Satisfaction Rate',
approval: 'Approval',
disapproval: 'Disapproval'
}

View File

@ -6,20 +6,20 @@ export default {
confirmMessage2: 'segments. Please proceed with caution.'
},
buttons: {
clearStrategy: 'Clear Strategy',
clearStrategy: 'Cleanup Strategy',
prev: 'Previous',
next: 'Next'
},
table: {
abstract: 'Abstract',
chat_record_count: 'Number of Chat Questions',
abstract: 'Title',
chat_record_count: 'Total Messages',
feedback: {
label: 'User Feedback',
star: 'Agree',
trample: 'Disagree'
},
mark: 'Improvement Label',
recenTimes: 'Recent Chat Time'
mark: 'Marks',
recenTimes: 'Last Chat Time'
},
addToDataset: 'Add to Knowledge',
daysText: 'Days ago',

View File

@ -41,7 +41,7 @@ export default {
editParam: 'Edit Parameter',
addParam: 'Add Parameter',
paramSetting: 'Model Parameter Settings',
apiParamPassing: 'API Parameter Passing'
apiParamPassing: 'Parameter'
},
form: {
templateName: {

View File

@ -8,7 +8,7 @@
}"
>
<div class="chat-embed__header" :style="customStyle">
<div class="chat-width flex align-center">
<div class="flex align-center">
<div class="mr-12 ml-24 flex">
<AppAvatar
v-if="isAppIcon(applicationDetail?.icon)"
@ -45,10 +45,9 @@
class="AiChat-embed"
>
<template #operateBefore>
<div class="chat-width">
<div>
<el-button type="primary" link class="new-chat-button mb-8" @click="newChat">
<el-icon><Plus /></el-icon
><span class="ml-4">{{ $t('chat.createChat') }}</span>
<el-icon><Plus /></el-icon><span class="ml-4">{{ $t('chat.createChat') }}</span>
</el-button>
</div>
</template>
@ -339,10 +338,6 @@ onMounted(() => {
padding-top: 12px;
}
}
.chat-width {
max-width: var(--app-chat-width, 860px);
margin: 0 auto;
}
}
</style>
<style lang="scss" scoped>