Showing
1 changed file
with
8 additions
and
1 deletions
@@ -177,6 +177,8 @@ export default { | @@ -177,6 +177,8 @@ export default { | ||
177 | type: 'txt' | 177 | type: 'txt' |
178 | }).show(); | 178 | }).show(); |
179 | 179 | ||
180 | + await this.delay(1500); | ||
181 | + | ||
180 | this.$router.replace({ | 182 | this.$router.replace({ |
181 | name: 'ProductDetail', | 183 | name: 'ProductDetail', |
182 | params: { | 184 | params: { |
@@ -221,7 +223,12 @@ export default { | @@ -221,7 +223,12 @@ export default { | ||
221 | }, | 223 | }, |
222 | onNumChange(count) { | 224 | onNumChange(count) { |
223 | this[Types.CHANGE_SELL_NUM](count); | 225 | this[Types.CHANGE_SELL_NUM](count); |
224 | - } | 226 | + }, |
227 | + delay(ns) { | ||
228 | + return new Promise(resolve => { | ||
229 | + setTimeout(resolve, ns); | ||
230 | + }); | ||
231 | + }, | ||
225 | } | 232 | } |
226 | }; | 233 | }; |
227 | </script> | 234 | </script> |
-
Please register or login to post a comment