diff --git a/uni_modules/vk-uview-ui/components/u-parse/libs/trees.vue b/uni_modules/vk-uview-ui/components/u-parse/libs/trees.vue index 98ce4007c9bd11d4e47bfd9fb528ff759e8fd95d..4e738a81b0e39f49d146c289715f4e58754053da 100644 --- a/uni_modules/vk-uview-ui/components/u-parse/libs/trees.vue +++ b/uni_modules/vk-uview-ui/components/u-parse/libs/trees.vue @@ -90,8 +90,8 @@ sub: 1, sup: 1 } - let global = {}; - global.Parser = {}; + let globalData = {}; + globalData.Parser = {}; //import trees from './trees' import cfg from '../libs/config.js' const errorImg = cfg.errorImg; @@ -204,7 +204,7 @@ src: attrs.src, ignore: () => preview = false }; - global.Parser.onImgtap && global.Parser.onImgtap(data); + globalData.Parser.onImgtap && globalData.Parser.onImgtap(data); this.top.$emit('imgtap', data); if (preview) { var urls = this.top.imgList, @@ -244,7 +244,7 @@ var jump = true, attrs = e.currentTarget.dataset.attrs; attrs.ignore = () => jump = false; - global.Parser.onLinkpress && global.Parser.onLinkpress(attrs); + globalData.Parser.onLinkpress && globalData.Parser.onLinkpress(attrs); this.top.$emit('linkpress', attrs); if (jump) { // #ifdef MP