diff --git a/src/pages/notification/index.tsx b/src/pages/notification/index.tsx index 511182b..3a1b5a5 100644 --- a/src/pages/notification/index.tsx +++ b/src/pages/notification/index.tsx @@ -6,7 +6,7 @@ /* eslint-disable @typescript-eslint/no-unsafe-member-access */ /* eslint-disable @typescript-eslint/no-unsafe-assignment */ /* eslint-disable import/first */ -import { Text, View } from '@tarojs/components'; +import { Image, Text, View } from '@tarojs/components'; import { memo, useEffect, useState } from 'react'; import { AtIcon } from 'taro-ui'; @@ -76,9 +76,11 @@ const TabBar: React.FC = memo(({ tab, setTab }) => ( )); const Message: React.FC = memo( - ({ username, eventType, description, comment, timestamp }) => ( + ({ username, avatar, eventType, description, comment, timestamp }) => ( - + + + {username} @@ -193,14 +195,14 @@ const Notification: React.FC = memo(() => { }, [tab]); return ( - + {tab === '提问' && message.map((item) => (