update: mobile 智能体管理多语言调整

This commit is contained in:
zhuoqinglian
2026-03-19 17:56:27 +08:00
parent 5b23804954
commit 52f5859b1f
7 changed files with 53 additions and 19 deletions
@@ -1006,6 +1006,7 @@ onMounted(async () => {
<wd-action-sheet
v-model="pickerShow.tts"
:actions="modelOptions.TTS && modelOptions.TTS.map(item => ({ name: item.modelName, value: item.id }))"
class="custom-sheet-tts"
@close="onPickerCancel('tts')"
@select="({ item }) => onPickerConfirm('tts', item.value, item.name)"
/>
@@ -1059,4 +1060,13 @@ onMounted(async () => {
background: transparent !important;
}
}
::v-deep .custom-sheet-tts {
.wd-action-sheet {
padding: 8px 0 !important;
overflow: hidden;
}
.wd-action-sheet__actions {
padding: 0 !important;
}
}
</style>
@@ -311,7 +311,7 @@ onMounted(async () => {
v-if="notSelectedList.length === 0"
class="h-[400rpx] flex items-center justify-center"
>
<wd-status-tip image="content" tip="{{ t('agent.tools.noMorePlugins') }}" />
<wd-status-tip image="content" :tip="t('agent.tools.noMorePlugins')" />
</view>
<view v-else class="p-[20rpx] space-y-[20rpx]">
<view
@@ -347,7 +347,7 @@ onMounted(async () => {
v-if="selectedList.length === 0"
class="h-[400rpx] flex items-center justify-center"
>
<wd-status-tip image="content" tip="{{ t('agent.tools.pleaseSelectPlugin') }}" />
<wd-status-tip image="content" :tip="t('agent.tools.pleaseSelectPlugin')" />
</view>
<view v-else class="p-[20rpx] space-y-[20rpx]">
<view
@@ -445,7 +445,7 @@ onMounted(async () => {
<!-- 参数编辑弹窗 -->
<wd-action-sheet
v-model="showParamDialog"
:title="`${t('agent.tools.paramConfiguration')} - ${currentFunction?.name || ''}`"
:title="`${t('agent.tools.parameterConfig')} - ${currentFunction?.name || ''}`"
custom-header-class="h-[75vh]"
@close="closeParamEdit"
>
@@ -586,3 +586,9 @@ onMounted(async () => {
</wd-action-sheet>
</view>
</template>
<style scoped lang="scss">
::v-deep .wd-action-sheet__header {
padding-right: 30rpx;
}
</style>
@@ -460,8 +460,11 @@ defineExpose({
<view class="p-[32rpx]">
<!-- 声纹向量选择 -->
<view class="mb-[32rpx]">
<text class="mb-[16rpx] block text-[28rpx] text-red font-medium">
* {{ t('voiceprint.voiceVector') }}
<text class="mb-[16rpx] block text-[28rpx] text-[#232338] font-medium">
<text class="text-red">
*
</text>
{{ t('voiceprint.voiceVector') }}
</text>
<view
class="flex cursor-pointer items-center justify-between border-[1rpx] border-[#eeeeee] rounded-[12rpx] bg-[#f5f7fb] p-[20rpx] transition-all duration-300 active:bg-[#eef3ff]"
@@ -479,8 +482,11 @@ defineExpose({
<!-- 姓名 -->
<view class="mb-[32rpx]">
<text class="mb-[16rpx] block text-[28rpx] text-red font-medium">
* {{ t('voiceprint.name') }}
<text class="mb-[16rpx] block text-[28rpx] text-[#232338] font-medium">
<text class="text-red">
*
</text>
{{ t('voiceprint.name') }}
</text>
<input
v-model="addForm.sourceName"
@@ -491,8 +497,11 @@ defineExpose({
<!-- 描述 -->
<view>
<text class="mb-[16rpx] block text-[28rpx] text-red font-medium">
* {{ t('voiceprint.description') }}
<text class="mb-[16rpx] block text-[28rpx] text-[#232338] font-medium">
<text class="text-red">
*
</text>
{{ t('voiceprint.description') }}
</text>
<textarea
v-model="addForm.introduce" :maxlength="100" :placeholder="t('voiceprint.pleaseInputDescription')"
@@ -521,7 +530,7 @@ defineExpose({
safe-area-inset-bottom
>
<view>
<view class="w-full flex items-center justify-between border-b-[2rpx] border-[#eeeeee] p-[32rpx_32rpx_24rpx]">
<view class="box-border w-full flex items-center justify-between border-b-[2rpx] border-[#eeeeee] p-[32rpx_32rpx_24rpx]">
<text class="w-full text-center text-[32rpx] text-[#232338] font-semibold">
{{ t('voiceprint.editSpeaker') }}
</text>
@@ -531,7 +540,10 @@ defineExpose({
<!-- 声纹向量选择 -->
<view class="mb-[32rpx]">
<text class="mb-[16rpx] block text-[28rpx] text-[#232338] font-medium">
* {{ t('voiceprint.voiceVector') }}
<text class="text-red">
*
</text>
{{ t('voiceprint.voiceVector') }}
</text>
<view
class="flex cursor-pointer items-center justify-between border-[1rpx] border-[#eeeeee] rounded-[12rpx] bg-[#f5f7fb] p-[20rpx] transition-all duration-300 active:bg-[#eef3ff]"
@@ -550,7 +562,10 @@ defineExpose({
<!-- 姓名 -->
<view class="mb-[32rpx]">
<text class="mb-[16rpx] block text-[28rpx] text-[#232338] font-medium">
* {{ t('voiceprint.name') }}
<text class="text-red">
*
</text>
{{ t('voiceprint.name') }}
</text>
<input
v-model="editForm.sourceName"
@@ -562,7 +577,10 @@ defineExpose({
<!-- 描述 -->
<view>
<text class="mb-[16rpx] block text-[28rpx] text-[#232338] font-medium">
* {{ t('voiceprint.description') }}
<text class="text-red">
*
</text>
{{ t('voiceprint.description') }}
</text>
<textarea
v-model="editForm.introduce" :maxlength="100" :placeholder="t('voiceprint.pleaseInputDescription')"