Showing
2 changed files
with
8 additions
and
2 deletions
@@ -139,7 +139,10 @@ | @@ -139,7 +139,10 @@ | ||
139 | reason: this.selected.reason || this.options[0].reason | 139 | reason: this.selected.reason || this.options[0].reason |
140 | }, (result) => { | 140 | }, (result) => { |
141 | if (result.code === 200) { | 141 | if (result.code === 200) { |
142 | - location.reload(); | 142 | + tip('取消成功'); |
143 | + setTimeout(() => { | ||
144 | + location.reload(); | ||
145 | + }, 1000); | ||
143 | } else if (result.code !== 500) { | 146 | } else if (result.code !== 500) { |
144 | tip(result.message); | 147 | tip(result.message); |
145 | } | 148 | } |
@@ -127,7 +127,10 @@ | @@ -127,7 +127,10 @@ | ||
127 | reason: this.selected.reason || this.options[0].reason | 127 | reason: this.selected.reason || this.options[0].reason |
128 | }, (result) => { | 128 | }, (result) => { |
129 | if (result.code === 200) { | 129 | if (result.code === 200) { |
130 | - location.reload(); | 130 | + tip('取消成功'); |
131 | + setTimeout(() => { | ||
132 | + location.reload(); | ||
133 | + }, 1000); | ||
131 | } else if (result.code !== 500) { | 134 | } else if (result.code !== 500) { |
132 | tip(result.message); | 135 | tip(result.message); |
133 | } | 136 | } |
-
Please register or login to post a comment