Skip to content

Commit

Permalink
优化主页列表错误信息提示
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaopujun committed Apr 27, 2024
1 parent 8fd58ce commit b53981f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/framework/operate/ServerOperator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ export default class ServerOperator extends AbstractOperator {
if (res.code === 200)
return res.data;
else {
if (res.code === 500)
res.msg = "服务器链接失败";
res.msg = "服务器链接失败";
globalMessage.messageApi?.error(res.msg);
return {records: [], total: 0, current: 1, size: 10};
}
Expand Down
3 changes: 1 addition & 2 deletions src/pages/home/datasource/DataSourceStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,7 @@ export class DataSourceStore {
});
this.searchValue = null;
} else {
if (code === 500)
msg = "服务器链接失败";
msg = "服务器链接失败";
globalMessage.messageApi?.error(msg);
}
})
Expand Down

0 comments on commit b53981f

Please sign in to comment.