Browse Source

fixed #214

ali 3 years ago
parent
commit
8979ef825d

+ 5 - 1
src/components/Widgets/Other/Shop/ShopPaymentFromWallet/ShopPaymentFromWallet.vue

@@ -328,7 +328,11 @@ export default {
         .then((message) => {
           this.payMessage = message
           this.invoice.loading = false
-          this.$router.push({ name: 'UserPanel.Profile.ClassroomInfo', params: { id: this.classroom.id } })
+          if (this.$route.query.source === 'event') {
+            this.$router.push({ name: 'UserPanel.Profile.EventInfo', params: { id: this.classroom.id } })
+          } else {
+            this.$router.push({ name: 'UserPanel.Profile.ClassroomInfo', params: { id: this.classroom.id } })
+          }
         })
         .catch(() => {
           this.invoice.loading = false