🎈 perf(从小程序卡片进来的没有权限跳回首页):
This commit is contained in:
@@ -44,7 +44,7 @@ export default memo(({ value, onClick, showStatus = false, round = false, name =
|
||||
setLabAndImgShow(false)
|
||||
}, [])
|
||||
|
||||
const onShowLabAndImg = () => {
|
||||
const onShowLabAndImg = (e) => {
|
||||
onClick?.(value)
|
||||
if (!showStatus) return false
|
||||
setLabAndImgShow(true)
|
||||
@@ -56,7 +56,7 @@ export default memo(({ value, onClick, showStatus = false, round = false, name =
|
||||
|
||||
return (
|
||||
<>
|
||||
<View className={styles.labAndImg_main} style={{ borderRadius: round ? '50%' : '' }} onClick={() => onShowLabAndImg()}>
|
||||
<View className={styles.labAndImg_main} style={{ borderRadius: round ? '50%' : '' }} onClick={onShowLabAndImg}>
|
||||
{value.texture_url && (
|
||||
<Image
|
||||
mode='aspectFill'
|
||||
|
||||
Reference in New Issue
Block a user