diff --git a/src/components/AuthorIntro.vue b/src/components/AuthorIntro.vue index ddf3644..6359812 100644 --- a/src/components/AuthorIntro.vue +++ b/src/components/AuthorIntro.vue @@ -81,9 +81,11 @@ export default { }, mounted() { var allSlideData = localStorage.getItem("spotlight_slide"+this.$route.params.caseStudyId); - if (allSlideData) { + if (allSlideData) { this.allSlide = JSON.parse(allSlideData); this.getCurrentSlideData(); + }else{ + this.$router.push("/login"); } }, diff --git a/src/components/AuthorReadingBreak.vue b/src/components/AuthorReadingBreak.vue index 0af3282..b68a6ff 100644 --- a/src/components/AuthorReadingBreak.vue +++ b/src/components/AuthorReadingBreak.vue @@ -105,9 +105,11 @@ export default { var allSlideData = localStorage.getItem( "spotlight_slide" + this.$route.params.caseStudyId ); - if (allSlideData) { + if (allSlideData) { this.allSlide = JSON.parse(allSlideData); this.getCurrentSlideData(); + }else{ + this.$router.push("/login"); } }, methods: { @@ -149,14 +151,7 @@ export default { this.$router.push("/profile"); }, - commentExistCheck(i) { - console.log(this.commentList[i].comment); - var returnValue = false; - if (this.commentList[i].comment) { - returnValue = true; - } - return returnValue; - }, + }, }; diff --git a/src/components/AuthorReadingNow.vue b/src/components/AuthorReadingNow.vue index b61d567..f93f3ca 100644 --- a/src/components/AuthorReadingNow.vue +++ b/src/components/AuthorReadingNow.vue @@ -65,9 +65,11 @@ components: { }, mounted() { var allSlideData = localStorage.getItem("spotlight_slide"+this.$route.params.caseStudyId); - if (allSlideData) { + if (allSlideData) { this.allSlide = JSON.parse(allSlideData); this.getCurrentSlideData(); + }else{ + this.$router.push("/login"); } }, diff --git a/src/components/EpisodeIntro.vue b/src/components/EpisodeIntro.vue index 1a57a79..831c950 100644 --- a/src/components/EpisodeIntro.vue +++ b/src/components/EpisodeIntro.vue @@ -108,9 +108,11 @@ components: { }, mounted() { var allSlideData = localStorage.getItem("spotlight_slide"+this.$route.params.caseStudyId); - if (allSlideData) { + if (allSlideData) { this.allSlide = JSON.parse(allSlideData); this.getCurrentSlideData(); + }else{ + this.$router.push("/login"); } }, diff --git a/src/components/NoScreenshotSingleAuthor.vue b/src/components/NoScreenshotSingleAuthor.vue index 49178d1..0084ff0 100644 --- a/src/components/NoScreenshotSingleAuthor.vue +++ b/src/components/NoScreenshotSingleAuthor.vue @@ -509,9 +509,11 @@ export default { var allSlideData = localStorage.getItem( "spotlight_slide" + this.$route.params.caseStudyId ); - if (allSlideData) { + if (allSlideData) { this.allSlide = JSON.parse(allSlideData); this.getCurrentSlideData(); + }else{ + this.$router.push("/login"); } var userdata = localStorage.getItem("spotlight_usertoken"); if (userdata) { diff --git a/src/components/SingleMobileScreenInsightOne.vue b/src/components/SingleMobileScreenInsightOne.vue index 14b063d..f5afad9 100644 --- a/src/components/SingleMobileScreenInsightOne.vue +++ b/src/components/SingleMobileScreenInsightOne.vue @@ -474,9 +474,11 @@ export default { var allSlideData = localStorage.getItem( "spotlight_slide" + this.$route.params.caseStudyId ); - if (allSlideData) { + if (allSlideData) { this.allSlide = JSON.parse(allSlideData); this.getCurrentSlideData(); + }else{ + this.$router.push("/login"); } var userdata = localStorage.getItem("spotlight_usertoken"); if (userdata) { diff --git a/src/components/SingleMobileScreenInsightTwo.vue b/src/components/SingleMobileScreenInsightTwo.vue index be0c2c1..83ccb8e 100644 --- a/src/components/SingleMobileScreenInsightTwo.vue +++ b/src/components/SingleMobileScreenInsightTwo.vue @@ -540,9 +540,11 @@ export default { "spotlight_slide" + this.$route.params.caseStudyId ); var userdata = localStorage.getItem("spotlight_usertoken"); - if (allSlideData) { + if (allSlideData) { this.allSlide = JSON.parse(allSlideData); this.getCurrentSlideData(); + }else{ + this.$router.push("/login"); } if (userdata) { userdata = JSON.parse(userdata); diff --git a/src/components/TwoScreenWithInsight.vue b/src/components/TwoScreenWithInsight.vue index 0916c6c..cc38103 100644 --- a/src/components/TwoScreenWithInsight.vue +++ b/src/components/TwoScreenWithInsight.vue @@ -477,9 +477,11 @@ export default { var allSlideData = localStorage.getItem( "spotlight_slide" + this.$route.params.caseStudyId ); - if (allSlideData) { + if (allSlideData) { this.allSlide = JSON.parse(allSlideData); this.getCurrentSlideData(); + }else{ + this.$router.push("/login"); } var userdata = localStorage.getItem("spotlight_usertoken"); if (userdata) { diff --git a/src/components/TwoScreenWithoutInsight.vue b/src/components/TwoScreenWithoutInsight.vue index d099299..1793590 100644 --- a/src/components/TwoScreenWithoutInsight.vue +++ b/src/components/TwoScreenWithoutInsight.vue @@ -528,9 +528,11 @@ export default { var allSlideData = localStorage.getItem( "spotlight_slide" + this.$route.params.caseStudyId ); - if (allSlideData) { + if (allSlideData) { this.allSlide = JSON.parse(allSlideData); this.getCurrentSlideData(); + }else{ + this.$router.push("/login"); } var userdata = localStorage.getItem("spotlight_usertoken"); if (userdata) { diff --git a/src/components/noscreenshotSingleautho.vue b/src/components/noscreenshotSingleautho.vue index 9868ba0..980e987 100644 --- a/src/components/noscreenshotSingleautho.vue +++ b/src/components/noscreenshotSingleautho.vue @@ -444,6 +444,8 @@ data() { if (allSlideData) { this.allSlide = JSON.parse(allSlideData); this.getCurrentSlideData(); + }else{ + this.$router.push("/login"); } var userdata = localStorage.getItem("spotlight_usertoken"); if (userdata) { diff --git a/src/components/outro.vue b/src/components/outro.vue index 4c08193..8cf42c0 100644 --- a/src/components/outro.vue +++ b/src/components/outro.vue @@ -18,14 +18,14 @@