File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -291,6 +291,9 @@ export default {
291
291
wowSlides .includes (this .currentSlide .$attrs .id ) && this .step >= 2
292
292
},
293
293
currentSlide : function () {
294
+ this .corgi = false
295
+ this .football = false
296
+ this .wow = false
294
297
if (this .currentSlide .$attrs .id ) {
295
298
this .updateSlideId (this .currentSlide .$attrs .id )
296
299
const corgiSlides = [' intro' , ' mistakes' , ' lab' , ' helloWorld' ]
@@ -304,11 +307,7 @@ export default {
304
307
},
305
308
},
306
309
mounted : function () {
307
- this .currentSlideIndex = this .$route .query .slide
308
- ? this .$route .query .slide
309
- : 1
310
- this .currentSlide = this .slides [this .currentSlideIndex - 1 ]
311
- this .$store .state .presentation .isLive = true
310
+ setTimeout (this .jumpToSlide , 100 )
312
311
},
313
312
destroyed : function () {
314
313
this .$store .state .presentation .isLive = false
@@ -317,6 +316,12 @@ export default {
317
316
updateUrlQuery (index ) {
318
317
this .$router .push ({ name: ' talks-piter' , query: { slide: index } })
319
318
},
319
+ jumpToSlide () {
320
+ const slideIndex = this .$route .query .slide ? this .$route .query .slide : 1
321
+ this .currentSlideIndex = slideIndex
322
+ this .currentSlide = this .slides [slideIndex - 1 ]
323
+ this .$store .state .presentation .isLive = true
324
+ },
320
325
},
321
326
}
322
327
</script >
You can’t perform that action at this time.
0 commit comments