Browse Source

vue2里没有unmounted!

任一存 2 years ago
parent
commit
7c8fa3c434

+ 1 - 1
packages/qjkankan-editor/src/components/materialSelectorForEditor.vue

@@ -1549,7 +1549,7 @@ export default {
     console.log('tableHeadersForVideo: ', this.tableHeadersForVideo);
     console.log('tableHeadersForVideo: ', this.tableHeadersForVideo);
     this.clearUploadStatusLists()
     this.clearUploadStatusLists()
   },
   },
-  unmounted() {
+  beforeDestroy() {
     this.$store.commit('setUploadStatusListImage', this.uploadStatusListImage.filter((item) => {
     this.$store.commit('setUploadStatusListImage', this.uploadStatusListImage.filter((item) => {
       return item.status === 'LOADING'
       return item.status === 'LOADING'
     }))
     }))

+ 1 - 1
packages/qjkankan-editor/src/components/materialSelectorForManageCenter.vue

@@ -1146,7 +1146,7 @@ export default {
     console.log('tableHeadersForVideo: ', this.tableHeadersForVideo);
     console.log('tableHeadersForVideo: ', this.tableHeadersForVideo);
     this.clearUploadStatusLists()
     this.clearUploadStatusLists()
   },
   },
-  unmounted() {
+  beforeDestroy() {
     this.$store.commit('setUploadStatusListImage', this.uploadStatusListImage.filter((item) => {
     this.$store.commit('setUploadStatusListImage', this.uploadStatusListImage.filter((item) => {
       return item.status === 'LOADING'
       return item.status === 'LOADING'
     }))
     }))