|
|
@@ -41,6 +41,7 @@ import HomeIndex from './home/index.vue';
|
|
|
import DiscoverIndex from './home/discover/index.vue';
|
|
|
import StoreIndex from './home/store/index.vue';
|
|
|
import CommonRoot from '@/components/dialog/CommonRoot.vue';
|
|
|
+import { onShareAppMessage, onShareTimeline } from '@dcloudio/uni-app';
|
|
|
|
|
|
const title = computed(() => {
|
|
|
switch (tabIndex.value) {
|
|
|
@@ -58,6 +59,19 @@ const title = computed(() => {
|
|
|
return '';
|
|
|
});
|
|
|
const tabIndex = ref(0);
|
|
|
+
|
|
|
+onShareAppMessage(() => {
|
|
|
+ return {
|
|
|
+ title: '村社文化资源挖掘平台',
|
|
|
+ path: '/pages/index/index',
|
|
|
+ }
|
|
|
+})
|
|
|
+onShareTimeline(() => {
|
|
|
+ return {
|
|
|
+ title: '村社文化资源挖掘平台',
|
|
|
+ path: '/pages/index/index',
|
|
|
+ }
|
|
|
+})
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|