|
@@ -7,7 +7,8 @@ import ColumnContent from './components/ColumnContent'
|
|
|
import ValidateEmpty from 'components/ValidateEmpty'
|
|
|
import { WebNotPublish } from 'components/Empty'
|
|
|
import useTimeCount from 'Material/hooks/useTimeCount'
|
|
|
-import NoPermission, { INewPermissionType, ISpecialType, ITryType } from 'Material/components/NoPermission'
|
|
|
+import { INewPermissionType } from 'Material/components/NoPermission'
|
|
|
+import { setWxShare } from 'utils/wxConfig'
|
|
|
import styles from './css/ColumnDetail.module.scss'
|
|
|
export enum ColumnHasPermissionType {
|
|
|
OK = 1,
|
|
@@ -24,7 +25,10 @@ const ColumnDetail: React.FC<IColumnDetailProps> = props => {
|
|
|
// 详情
|
|
|
const { data, loading, refresh } = useRequest(ColumnService.getColumnDetail, {
|
|
|
defaultParams: [props.articleId],
|
|
|
- formatResult: response => response.data.Data
|
|
|
+ formatResult: response => response.data.Data,
|
|
|
+ onSuccess: res => {
|
|
|
+ setWxShare(res.Title, '', res.ShareImg)
|
|
|
+ }
|
|
|
})
|
|
|
|
|
|
useTimeCount(
|