ali 3 سال پیش
والد
کامیت
8979ef825d
1فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  1. 5 1
      src/components/Widgets/Other/Shop/ShopPaymentFromWallet/ShopPaymentFromWallet.vue

+ 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