mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-uniapp.git
synced 2026-06-23 10:20:14 +08:00
refactor:项目升级Vue3+uView Plus
- 改造入口文件、全量替换组件引入 - 过滤器迁移混入,更新忽略配置,新增迁移文档
This commit is contained in:
16
utils/mpShare.js
Normal file
16
utils/mpShare.js
Normal file
@@ -0,0 +1,16 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user