|
@@ -144,12 +144,23 @@ export default {
|
|
|
},
|
|
|
//方法集合
|
|
|
methods: {
|
|
|
+ requestProcessElementInTxtMain() {
|
|
|
+ this.$nextTick(() => {
|
|
|
+ const txtMainList = document.getElementsByClassName('txtMain')
|
|
|
+ for (const iterator of txtMainList) {
|
|
|
+ this.$eventBus.$emit('request-process-text-element', iterator)
|
|
|
+ this.$eventBus.$emit('request-process-image-element', iterator)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
pageCut(i){
|
|
|
this.mainArr = i
|
|
|
this.toTop()
|
|
|
+ this.requestProcessElementInTxtMain()
|
|
|
},
|
|
|
skip(id) {
|
|
|
this.$router.replace(`/Layout/EventsInfo/${id}`).catch(() => {});
|
|
|
+ this.requestProcessElementInTxtMain()
|
|
|
},
|
|
|
// 点击回到顶部
|
|
|
toTop() {
|
|
@@ -210,10 +221,7 @@ export default {
|
|
|
"request-read",
|
|
|
`You've reached the sub-page of the Events page.This page contains one navigation section, four window sections, and one interactive section. To choose an section, please hit the shortcut key.`
|
|
|
);
|
|
|
- const txtMainList = document.getElementsByClassName('txtMain')
|
|
|
- for (const iterator of txtMainList) {
|
|
|
- this.$eventBus.$emit('request-process-text-element', iterator)
|
|
|
- }
|
|
|
+ this.requestProcessElementInTxtMain()
|
|
|
},
|
|
|
beforeCreate() {}, //生命周期 - 创建之前
|
|
|
beforeMount() {}, //生命周期 - 挂载之前
|