fix: locale switching logic correction (#5344)

* 修复语言切换后的数据更新逻辑

* 表单默认按钮的content属性可提供computed类型的值
This commit is contained in:
Netfan
2025-01-10 14:32:21 +08:00
committed by GitHub
parent 7606b86854
commit 624beb6fa0
3 changed files with 6 additions and 5 deletions

View File

@@ -92,7 +92,7 @@ const [Form, formApi] = useTableForm({
},
showCollapseButton: true,
submitButtonOptions: {
content: $t('common.query'),
content: computed(() => $t('common.search')),
},
wrapperClass: 'grid-cols-1 md:grid-cols-2 lg:grid-cols-3',
});