improved message displaying

This commit is contained in:
huangjx
2022-02-23 20:56:30 +08:00
parent 5429581f95
commit cf8b07932b
6 changed files with 73 additions and 20 deletions

View File

@@ -29,7 +29,7 @@ const buttonHandler = (event, type) => {
console.log(error);
}).setHandler(function (data) {
if (data.hasOwnProperty('error')) {
helper.message(data['error']);
helper.error(data['error']);
return;
}
if (data.hasOwnProperty('result')) {