uni-app : onShareAppMessage

Continuous update
**2, **onShareAppMessage This function is used to share applets, here is
how to write it in uni-app.
insert image description here
Note that the function should be written outside the methods
insert image description here

**1.** This error is very confusing, Baidu can’t find it, and then I checked the configuration of pages.json and found that when I was just unfamiliar with it, I thought that App.vue should also be injected, so I set it up on my own. up. (I made a stupid mistake)
insert image description here
Solution: Just delete this in pages.json
insert image description here

Guess you like

Origin blog.csdn.net/weixin_47211345/article/details/115139761