Commit af885b0d authored by Sixiang_Zzb's avatar Sixiang_Zzb

物业服务 详情和编辑 头部内容提示更改

parent e4429652
......@@ -38,18 +38,27 @@ const Detail = (props: any) => {
'Reply To Problem Feedback',
];
const headTitlesDetail = [
'Details of community maintenance',
'Details of Shelf life Service',
'Details of Owner Complaints',
'Details of Report Online',
'Details of Problem Feedback',
];
useEffect(() => {
if (location.pathname.indexOf('/Edit') > -1) {
setEditorFlag(true);
setHeadTitle(headTitles[parseInt(location.query.serviceType) - 1]);
} else {
setEditorFlag(false);
setHeadTitle(headTitlesDetail[parseInt(location.query.serviceType) - 1]);
}
RA(21, {
serviceType: location.query.serviceType,
id: location.query.id,
});
setHeadTitle(headTitles[parseInt(location.query.serviceType) - 1]);
setLoading(true);
}, [location.pathname]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment