|
@@ -159,6 +159,7 @@ import {
|
|
|
import CorrectQuestionDialog from '@/components/MxPaper/plus/correct-question-dialog'
|
|
|
import LeftTreeSide from '@/views/questioncenter/components/generate-tabs/plugins/left-tree-side'
|
|
|
import PaperWorkIdentifierMixin from './paper-work-identifier-mixin'
|
|
|
+import EventBus from '@/components/EventBus'
|
|
|
|
|
|
export default {
|
|
|
mixins: [PaperWorkIdentifierMixin],
|
|
@@ -223,6 +224,10 @@ export default {
|
|
|
mounted() {
|
|
|
this.resetQueryParams()
|
|
|
this.loadQuestionCard()
|
|
|
+ EventBus.instance.$on(consts.keys.keyGenerationCartChanged, () => this.loadQuestionCard())
|
|
|
+ },
|
|
|
+ beforeDestroy() {
|
|
|
+ EventBus.instance.$off(consts.keys.keyGenerationCartChanged)
|
|
|
},
|
|
|
methods: {
|
|
|
loadQuestionCard() {
|