Commit b9d7b729 authored by hewenhao's avatar hewenhao

feat: 分享打开页返回

parent 862945e3
import { View, Image } from '@tarojs/components'
import { getMenuButtonBoundingClientRect, navigateBack } from '@tarojs/taro'
import { getMenuButtonBoundingClientRect, reLaunch } from '@tarojs/taro'
import { useState, } from 'react'
import classNames from 'classnames'
import assetsPk from '@/assets/oss/assets-pk'
......@@ -18,7 +18,7 @@ const TopHeader = () => {
}}
>
<View className={styles.inner} style={{ height: `${nav.height + 10}px` }}>
<Image src={assetsPk['accept-arrow.png'].u} className={styles.arrow} onClick={() => navigateBack()}></Image>
<Image src={assetsPk['accept-arrow.png'].u} className={styles.arrow} onClick={() => reLaunch({ url: '/pages/main/main' })}></Image>
</View>
</View>
</View>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment