Files
lilishop-uniapp/utils/mpShare.js
lifenlong f4337fd030 refactor:项目升级Vue3+uView Plus
- 改造入口文件、全量替换组件引入
- 过滤器迁移混入,更新忽略配置,新增迁移文档
2026-06-06 22:51:10 +08:00

17 lines
271 B
JavaScript

export default {
onLoad() {
if (!uni.$u) {
uni.$u = {}
}
uni.$u.mpShare = {
title: '',
path: '',
imageUrl: ''
}
this.$u.mpShare = uni.$u.mpShare
},
onShareAppMessage() {
return this.$u.mpShare || uni.$u.mpShare
}
}