feat: 页面挑标题

This commit is contained in:
eric
2022-11-13 21:53:17 +08:00
parent 4fadb644f3
commit 14371e7e41
15 changed files with 47 additions and 13 deletions

View File

@@ -30,9 +30,15 @@ const Home = () => {
];
useEffect(() => {
// 设置标题
definePageConfig({
navigationBarTitleText: '首页'
})
// 设置允许分享
Taro.showShareMenu({
withShareTicket: true,
});
// 其他分享
Taro.updateShareMenu({
withShareTicket: true,
success() {},