fix: 修复弹窗 toast 不提示问题 (#5182)

This commit is contained in:
liaoxuezhi 2022-08-18 18:43:19 +08:00 committed by GitHub
parent fbae7292ed
commit 8db4dc703a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -365,9 +365,11 @@ export const FormStore = ServiceStore.named('FormStore')
}
self.markSaving(false);
self.updateMessage(
json.msg ?? options.successMessage === 'saveSuccess'
json.msg ??
(options.successMessage === 'saveSuccess'
? json.defaultMsg
: self.__(options && options.successMessage) ?? json.defaultMsg
: self.__(options && options.successMessage)) ??
json.defaultMsg
);
if (!ret?.dispatcher?.prevented) {
self.msg &&