罗世杰:支持分享到朋友、朋友圈
This commit is contained in:
2
main.js
2
main.js
@@ -9,6 +9,8 @@ Vue.use(uView)
|
|||||||
Vue.prototype.$api = apiService
|
Vue.prototype.$api = apiService
|
||||||
Vue.prototype.$toast = toast
|
Vue.prototype.$toast = toast
|
||||||
|
|
||||||
|
import share from './utils/share.js'
|
||||||
|
Vue.mixin(share)
|
||||||
// #ifndef VUE3
|
// #ifndef VUE3
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
Vue.config.productionTip = false
|
Vue.config.productionTip = false
|
||||||
|
|||||||
8
utils/share.js
Normal file
8
utils/share.js
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
export default{
|
||||||
|
onShareAppMessage() {
|
||||||
|
return {}
|
||||||
|
},
|
||||||
|
onShareTimeline() {
|
||||||
|
return {}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user