fix: optimize
This commit is contained in:
parent
20865d53c3
commit
c5880b8d13
@ -346,7 +346,7 @@ function chatMessage(chat?: any, problem?: string, re_chat?: boolean, other_para
|
|||||||
} else if (response.status === 460) {
|
} else if (response.status === 460) {
|
||||||
return Promise.reject(t('chat.tip.errorIdentifyMessage'))
|
return Promise.reject(t('chat.tip.errorIdentifyMessage'))
|
||||||
} else if (response.status === 461) {
|
} else if (response.status === 461) {
|
||||||
return Promise.reject('chat.tip.errorLimitMessage')
|
return Promise.reject(t('chat.tip.errorLimitMessage'))
|
||||||
} else {
|
} else {
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
// 将滚动条滚动到最下面
|
// 将滚动条滚动到最下面
|
||||||
|
|||||||
@ -45,10 +45,10 @@ export default {
|
|||||||
LimitDialog: {
|
LimitDialog: {
|
||||||
dialogTitle: 'Access Restrictions',
|
dialogTitle: 'Access Restrictions',
|
||||||
showSourceLabel: 'Show Return Knowledge Reference',
|
showSourceLabel: 'Show Return Knowledge Reference',
|
||||||
clientQueryLimitLabel: 'Each Client Query Limit',
|
clientQueryLimitLabel: 'Limit the number of messages for each client',
|
||||||
authentication: 'Authentication',
|
authentication: 'Authentication',
|
||||||
authenticationValue: 'Authentication Password',
|
authenticationValue: 'Authentication Password',
|
||||||
timesDays: 'Times/Day',
|
timesDays: 'messages per day',
|
||||||
whitelistLabel: 'Whitelist',
|
whitelistLabel: 'Whitelist',
|
||||||
whitelistPlaceholder:
|
whitelistPlaceholder:
|
||||||
'Please enter allowed third-party source addresses, one per line, such as:\nhttp://127.0.0.1:5678\nhttps://dataease.io'
|
'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',
|
customThemeColor: 'Custom Theme Color',
|
||||||
headerTitleFontColor: 'Header Title Font Color',
|
headerTitleFontColor: 'Header Title Font Color',
|
||||||
default: 'Default',
|
default: 'Default',
|
||||||
askUserAvatar: 'Ask User Avatar',
|
askUserAvatar: 'Questioner\'s Avatar',
|
||||||
replace: 'Replace',
|
replace: 'Replace',
|
||||||
imageMessage: 'Suggested size 32*32, supports jpg, png, gif, size no more than 10 MB',
|
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',
|
floatIcon: 'Floating Icon',
|
||||||
iconDefaultPosition: 'Icon Default Position',
|
iconDefaultPosition: 'Icon Default Position',
|
||||||
iconPosition: {
|
iconPosition: {
|
||||||
@ -80,7 +80,7 @@ export default {
|
|||||||
top: 'Top'
|
top: 'Top'
|
||||||
},
|
},
|
||||||
draggablePosition: 'Draggable Position',
|
draggablePosition: 'Draggable Position',
|
||||||
showHistory: 'Show History',
|
showHistory: 'Show Chat History',
|
||||||
displayGuide: 'Display guide image (floating window mode)',
|
displayGuide: 'Display guide image (floating window mode)',
|
||||||
disclaimer: 'Disclaimer',
|
disclaimer: 'Disclaimer',
|
||||||
disclaimerValue:
|
disclaimerValue:
|
||||||
@ -102,9 +102,9 @@ export default {
|
|||||||
charts: {
|
charts: {
|
||||||
customerTotal: 'Total Customers',
|
customerTotal: 'Total Customers',
|
||||||
customerNew: 'New Customers',
|
customerNew: 'New Customers',
|
||||||
queryCount: 'Query Count',
|
queryCount: 'Total Chats',
|
||||||
tokensTotal: 'Total Tokens',
|
tokensTotal: 'Total Tokens',
|
||||||
userSatisfaction: 'User Satisfaction',
|
userSatisfaction: 'User Satisfaction Rate',
|
||||||
approval: 'Approval',
|
approval: 'Approval',
|
||||||
disapproval: 'Disapproval'
|
disapproval: 'Disapproval'
|
||||||
}
|
}
|
||||||
|
|||||||
@ -6,20 +6,20 @@ export default {
|
|||||||
confirmMessage2: 'segments. Please proceed with caution.'
|
confirmMessage2: 'segments. Please proceed with caution.'
|
||||||
},
|
},
|
||||||
buttons: {
|
buttons: {
|
||||||
clearStrategy: 'Clear Strategy',
|
clearStrategy: 'Cleanup Strategy',
|
||||||
prev: 'Previous',
|
prev: 'Previous',
|
||||||
next: 'Next'
|
next: 'Next'
|
||||||
},
|
},
|
||||||
table: {
|
table: {
|
||||||
abstract: 'Abstract',
|
abstract: 'Title',
|
||||||
chat_record_count: 'Number of Chat Questions',
|
chat_record_count: 'Total Messages',
|
||||||
feedback: {
|
feedback: {
|
||||||
label: 'User Feedback',
|
label: 'User Feedback',
|
||||||
star: 'Agree',
|
star: 'Agree',
|
||||||
trample: 'Disagree'
|
trample: 'Disagree'
|
||||||
},
|
},
|
||||||
mark: 'Improvement Label',
|
mark: 'Marks',
|
||||||
recenTimes: 'Recent Chat Time'
|
recenTimes: 'Last Chat Time'
|
||||||
},
|
},
|
||||||
addToDataset: 'Add to Knowledge',
|
addToDataset: 'Add to Knowledge',
|
||||||
daysText: 'Days ago',
|
daysText: 'Days ago',
|
||||||
|
|||||||
@ -41,7 +41,7 @@ export default {
|
|||||||
editParam: 'Edit Parameter',
|
editParam: 'Edit Parameter',
|
||||||
addParam: 'Add Parameter',
|
addParam: 'Add Parameter',
|
||||||
paramSetting: 'Model Parameter Settings',
|
paramSetting: 'Model Parameter Settings',
|
||||||
apiParamPassing: 'API Parameter Passing'
|
apiParamPassing: 'Parameter'
|
||||||
},
|
},
|
||||||
form: {
|
form: {
|
||||||
templateName: {
|
templateName: {
|
||||||
|
|||||||
@ -8,7 +8,7 @@
|
|||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<div class="chat-embed__header" :style="customStyle">
|
<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">
|
<div class="mr-12 ml-24 flex">
|
||||||
<AppAvatar
|
<AppAvatar
|
||||||
v-if="isAppIcon(applicationDetail?.icon)"
|
v-if="isAppIcon(applicationDetail?.icon)"
|
||||||
@ -45,10 +45,9 @@
|
|||||||
class="AiChat-embed"
|
class="AiChat-embed"
|
||||||
>
|
>
|
||||||
<template #operateBefore>
|
<template #operateBefore>
|
||||||
<div class="chat-width">
|
<div>
|
||||||
<el-button type="primary" link class="new-chat-button mb-8" @click="newChat">
|
<el-button type="primary" link class="new-chat-button mb-8" @click="newChat">
|
||||||
<el-icon><Plus /></el-icon
|
<el-icon><Plus /></el-icon><span class="ml-4">{{ $t('chat.createChat') }}</span>
|
||||||
><span class="ml-4">{{ $t('chat.createChat') }}</span>
|
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -339,10 +338,6 @@ onMounted(() => {
|
|||||||
padding-top: 12px;
|
padding-top: 12px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.chat-width {
|
|
||||||
max-width: var(--app-chat-width, 860px);
|
|
||||||
margin: 0 auto;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user