sunlupeng пре 1 година
родитељ
комит
41fe35cc7d
1 измењених фајлова са 16 додато и 14 уклоњено
  1. 16 14
      src/views/HomeView/FestiveEvents.vue

+ 16 - 14
src/views/HomeView/FestiveEvents.vue

@@ -73,20 +73,22 @@ export default {
         },
         handleClickReceive(val){
             // window.location.href = val;
-            
-            this.$router.push({
-                path: '/home/festiveEvents/answerGame',
-                query: {
-                    actId:val.actId
-                }
-            });
-            // this.$router.push({
-            //     path: '/home/festiveEvents/game',
-            //     query: {
-            //         activityUrl: val.activityUrl,
-            //         actId:val.actId
-            //     }
-            // });
+            if(val.activityUrl){
+                this.$router.push({
+                    path: '/home/festiveEvents/game',
+                    query: {
+                        activityUrl: val.activityUrl,
+                        actId:val.actId
+                    }
+                });
+            }else{
+                this.$router.push({
+                    path: '/home/festiveEvents/answerGame',
+                    query: {
+                        actId:val.actId
+                    }
+                });
+            }
         }
     }
 };