|
@@ -616,10 +616,17 @@ export default {
|
|
|
|
|
|
this.$eventBus.$on('request-read', (text) => {
|
|
|
console.log('无障碍组件收到request-read消息:', text);
|
|
|
- if (this.isCompActive) {
|
|
|
+ if (this.ariaSettings.isCompActive) {
|
|
|
this.planToPlayAudio('', text)
|
|
|
}
|
|
|
})
|
|
|
+ this.$eventBus.$on('request-magnify', (textObj) => {
|
|
|
+ console.log('无障碍组件收到request-magnify消息:', textObj);
|
|
|
+ if (this.ariaSettings.isCompActive) {
|
|
|
+ this.elemType = textObj.elemType
|
|
|
+ this.elemDisc = textObj.elemDisc
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
destroyed() {
|
|
|
window.removeEventListener('storage', this.loadStoredSettings, {
|
|
@@ -633,6 +640,7 @@ export default {
|
|
|
})
|
|
|
|
|
|
this.$eventBus.$off('request-read')
|
|
|
+ this.$eventBus.$off('request-magnify')
|
|
|
|
|
|
document.removeEventListener('mouseover', this.onMouseOverForContinueRead, {
|
|
|
passive: true,
|