diff --git a/main.js b/main.js index e035a76..14855ed 100644 --- a/main.js +++ b/main.js @@ -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 diff --git a/utils/share.js b/utils/share.js new file mode 100644 index 0000000..5578dd9 --- /dev/null +++ b/utils/share.js @@ -0,0 +1,8 @@ +export default{ + onShareAppMessage() { + return {} + }, + onShareTimeline() { + return {} + } +} \ No newline at end of file