xiongzhu 4 лет назад
Родитель
Сommit
abf307c4ce
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      src/main/nine-space/src/views/Submit.vue

+ 4 - 4
src/main/nine-space/src/views/Submit.vue

@@ -189,7 +189,7 @@ export default {
                         })
                         .then(() => {
                             if (res.status === 'CANCELLED') {
-                                this.$router.back();
+                                // this.$router.back();
                             } else {
                                 this.$router.replace('/orderDetail?id=' + res.id);
                             }
@@ -283,9 +283,9 @@ export default {
                                                 ...res,
                                                 success(res) {
                                                     this.$toast.success('支付成功');
-                                                    // setTimeout(() => {
-                                                    //     this.$router.replace('/orders');
-                                                    // }, 1000);
+                                                    setTimeout(() => {
+                                                        this.$router.replace('/orders');
+                                                    }, 1000);
                                                 },
                                                 fail(e) {
                                                     console.log(e);