refactor: local impeove (#3367)

This commit is contained in:
katherinehhh 2024-01-11 15:19:44 +08:00 committed by GitHub
parent 7d29c717eb
commit f38e4bcaa8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,8 +68,11 @@ export const useCustomizeBulkUpdateActionProps = () => {
await Promise.all(waitList);
modal.confirm({
title: t('Bulk update'),
content: updateMode === 'selected' ? t('Update selected data?') : t('Update all data?'),
title: t('Bulk update', { ns: 'client' }),
content:
updateMode === 'selected'
? t('Update selected data?', { ns: 'client' })
: t('Update all data?', { ns: 'client' }),
async onOk() {
const { filter } = service.params?.[0] ?? {};
const updateData: { filter?: any; values: any; forceUpdate: boolean } = {