🎈 perf(从小程序卡片进来的没有权限跳回首页):

This commit is contained in:
2022-11-26 14:20:34 +08:00
parent 2babf94747
commit ac260696f8
5 changed files with 27 additions and 15 deletions
+2 -2
View File
@@ -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'