We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f026195 commit 2ab2f24Copy full SHA for 2ab2f24
1 file changed
src/pages/index/index.vue
@@ -315,7 +315,7 @@
315
</template>
316
317
<script setup lang="ts">
318
-import Taro from "@tarojs/taro";
+import Taro, { useLoad } from "@tarojs/taro";
319
import { computed, onMounted, ref, watch } from "vue";
320
import {
321
DEFAULT_SOURCE_ID,
@@ -622,6 +622,14 @@ onMounted(async () => {
622
}
623
});
624
625
+useLoad(async (options) => {
626
+ // 支持分享
627
+ Taro.showShareMenu({
628
+ withShareTicket: true,
629
+ showShareItems: ["wechatFriends", "wechatMoment"],
630
+ });
631
+});
632
+
633
watch(
634
[
635
surname,
0 commit comments