罗世杰:支持分享到朋友、朋友圈

This commit is contained in:
LuoShijie
2023-11-30 20:10:13 +08:00
parent 19a699a968
commit 8d7cf8d8b2
2 changed files with 10 additions and 0 deletions

View File

@@ -9,6 +9,8 @@ Vue.use(uView)
Vue.prototype.$api = apiService
Vue.prototype.$toast = toast
import share from './utils/share.js'
Vue.mixin(share)
// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false

8
utils/share.js Normal file
View File

@@ -0,0 +1,8 @@
export default{
onShareAppMessage() {
return {}
},
onShareTimeline() {
return {}
}
}