Skip to content

Commit a2eb08e

Browse files
committed
解决uparse不能点击链接的问题
1 parent a8423f9 commit a2eb08e

13 files changed

Lines changed: 14 additions & 14 deletions

‎components/uParse/src/components/wxParseImg.vue‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ export default {
3131
methods: {
3232
wxParseImgTap(e) {
3333
if (!this.preview) return;
34-
const { src } = e.target.dataset;
34+
const { src } = e.currentTarget.dataset;
3535
if (!src) return;
3636
this.node.$host.preview(src, e);
3737
},
3838
// 图片视觉宽高计算函数区
3939
wxParseImgLoad(e) {
40-
const { src } = e.target.dataset;
40+
const { src } = e.currentTarget.dataset;
4141
if (!src) return;
4242
const { width, height } = e.mp.detail;
4343
const recal = this.wxAutoImageCal(width, height);

‎components/uParse/src/components/wxParseTemplate0.vue‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
wxParseATap(e) {
9595
const {
9696
href
97-
} = e.target.dataset;
97+
} = e.currentTarget.dataset;
9898
if (!href) return;
9999
this.node.$host.navigate(href, e);
100100
},

‎components/uParse/src/components/wxParseTemplate1.vue‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
wxParseATap(e) {
8787
const {
8888
href
89-
} = e.target.dataset;
89+
} = e.currentTarget.dataset;
9090
if (!href) return;
9191
this.node.$host.navigate(href, e);
9292
},

‎components/uParse/src/components/wxParseTemplate10.vue‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
wxParseATap(e) {
8585
const {
8686
href
87-
} = e.target.dataset;
87+
} = e.currentTarget.dataset;
8888
if (!href) return;
8989
this.node.$host.navigate(href, e);
9090
},

‎components/uParse/src/components/wxParseTemplate11.vue‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
wxParseATap(e) {
7575
const {
7676
href
77-
} = e.target.dataset;
77+
} = e.currentTarget.dataset;
7878
if (!href) return;
7979
this.node.$host.navigate(href, e);
8080
},

‎components/uParse/src/components/wxParseTemplate2.vue‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
wxParseATap(e) {
8686
const {
8787
href
88-
} = e.target.dataset;
88+
} = e.currentTarget.dataset;
8989
if (!href) return;
9090
this.node.$host.navigate(href, e);
9191
},

‎components/uParse/src/components/wxParseTemplate3.vue‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
wxParseATap(e) {
8686
const {
8787
href
88-
} = e.target.dataset;
88+
} = e.currentTarget.dataset;
8989
if (!href) return;
9090
this.node.$host.navigate(href, e);
9191
},

‎components/uParse/src/components/wxParseTemplate4.vue‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
wxParseATap(e) {
8686
const {
8787
href
88-
} = e.target.dataset;
88+
} = e.currentTarget.dataset;
8989
if (!href) return;
9090
this.node.$host.navigate(href, e);
9191
},

‎components/uParse/src/components/wxParseTemplate5.vue‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
wxParseATap(e) {
8686
const {
8787
href
88-
} = e.target.dataset;
88+
} = e.currentTarget.dataset;
8989
if (!href) return;
9090
this.node.$host.navigate(href, e);
9191
},

‎components/uParse/src/components/wxParseTemplate6.vue‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
wxParseATap(e) {
8686
const {
8787
href
88-
} = e.target.dataset;
88+
} = e.currentTarget.dataset;
8989
if (!href) return;
9090
this.node.$host.navigate(href, e);
9191
},

0 commit comments

Comments
 (0)