sunlupeng 1 년 전
부모
커밋
23c501af5d
2개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 2
      src/views/HomeView/DrawCarouselGame/DrawCarouselGame.vue
  2. 1 1
      src/views/HomeView/FestiveEvents.vue

+ 1 - 2
src/views/HomeView/DrawCarouselGame/DrawCarouselGame.vue

@@ -19,14 +19,13 @@ export default{
   },
   data() {
     return {
-            src: '', //需要加载的子页面url
+            src: this.$route.query.url ? this.$route.query.url : './drawCarousel.html', //需要加载的子页面url
             actId:this.$route.query.actId
         };
   },
   created(){},
   async mounted(){
 	    var that = this
-        that.src = './drawCarousel.html';
 	    this.iframe = document.getElementById('iframe');
 	    this.iframe.onload = function(){
 	        // iframe加载完成后要进行的操作

+ 1 - 1
src/views/HomeView/FestiveEvents.vue

@@ -90,7 +90,7 @@ export default {
                 this.$router.push({
                     path: '/home/festiveEvents/drawCarouselGame',
                     query: {
-                        activityUrl: val.activityUrl,
+                        url: val.activityUrl,
                         actId:val.actId
                     }
                 });