Skip to content

Commit

Permalink
feature: Issue a pop-up window for abnormal requests
Browse files Browse the repository at this point in the history
  • Loading branch information
PindleskinY committed Nov 20, 2020
1 parent 1fa9180 commit 7bf7abb
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions examples/static/initial.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ class MachineStatus {
data: {'timeQuantum': days},
success: response => {
if (response.code !== 200) {
window.alert(response.msg);
return;
}

Expand Down
1 change: 1 addition & 0 deletions packages/cjs/flask-state.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@
data: {'timeQuantum': days},
success: response => {
if (response.code !== 200) {
window.alert(response.msg);
return;
}

Expand Down
Loading

0 comments on commit 7bf7abb

Please sign in to comment.