diff --git a/.env b/.env index a11710a..86e2b46 100644 --- a/.env +++ b/.env @@ -3,5 +3,3 @@ TARO_APP_API=https://mooc.yaojiankang.top #TARO_APP_API=https://shopfix.yaojiankang.top #TARO_APP_API=https://playedu.yaojiankang.top TARO_APP_LGOIN=true - - diff --git a/src/pages/home/components/feature_recommended.tsx b/src/pages/home/components/feature_recommended.tsx index 0145a83..936de39 100644 --- a/src/pages/home/components/feature_recommended.tsx +++ b/src/pages/home/components/feature_recommended.tsx @@ -117,7 +117,7 @@ const FeatureRecommended: FC = (props) => { return props.illness.map(d => ({ id: d.id, imageUrl: '', - description: d.description, + description: d.description?.replace(/[^\u4e00-\u9fa5]/gi,"") ?? '暂无描述', title: d.name, path: `?id=${d.id}` })) diff --git a/src/pages/preview/profession/profession.tsx b/src/pages/preview/profession/profession.tsx index 7382144..e3516b7 100644 --- a/src/pages/preview/profession/profession.tsx +++ b/src/pages/preview/profession/profession.tsx @@ -92,7 +92,7 @@ const Profession = () => { data.data.map(d => jump(d)}> - {d.resource.name} + {d?.resource?.name} ) }