feat: Pop-up prompt message after modifying the dialog settings #2088 (#2114)

### What problem does this PR solve?

feat: Pop-up prompt message after modifying the dialog settings #2088

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-08-27 15:24:28 +08:00
committed by GitHub
parent 0bea7f21ae
commit fc172b4a79
4 changed files with 7 additions and 6 deletions

View File

@ -94,7 +94,7 @@ export const useSetNextDialog = () => {
if (data.retcode === 0) {
queryClient.invalidateQueries({ queryKey: ['fetchDialogList'] });
message.success(
i18n.t(`message.${params.id ? 'modified' : 'created'}`),
i18n.t(`message.${params.dialog_id ? 'modified' : 'created'}`),
);
}
return data?.retcode;