|
|
@@ -17,7 +17,7 @@ import { mapState } from 'vuex'
|
|
|
import BackTitle from '@/components/BackTitle'
|
|
|
import DiscussionArea from '@/components/DiscussionArea'
|
|
|
import { getSlideUrl } from '@/server/slide'
|
|
|
-import { SET_SRC } from '@/store/types/pdf-types'
|
|
|
+import { RESET, SET_SRC } from '@/store/types/pdf-types'
|
|
|
|
|
|
export default {
|
|
|
components: { DiscussionArea, BackTitle, PdfViewer },
|
|
|
@@ -29,6 +29,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
mounted () {
|
|
|
+ this.$store.commit(RESET)
|
|
|
getSlideUrl({ slideId: this.slide.id }).then(res => {
|
|
|
this.slideUrl = res
|
|
|
this.$store.commit(SET_SRC, { src: res })
|