Commit 4fb4331c1d5d0029314e80714fc7841f830c59ae

Authored by 莫红玲
2 parents 5d64bd05 90f0401d

Merge branch 'bug_fix' into 'master'

fix(mkt): 活动参数fix



See merge request !657
src/pages/mkt/ActivityCreate/index.tsx
... ... @@ -21,7 +21,7 @@ const ActivityCreate = (props: Props) => {
21 21 //@ts-ignore
22 22 const { state = {} } = props.location;
23 23 const storagePa = localStorage.getItem('mkt_activity_params');
24   - const pathParams = storagePa ? JSON.parse(storagePa) : null;
  24 + const pathParams = storagePa ? JSON.parse(storagePa) : {};
25 25 const { activityNo, status, change } = state.activityNo ? state : pathParams;
26 26 const [current, setCurrent] = useState<number>(0);
27 27 const { setReadOnly, setBaseInfo, baseInfo } = useStore();
... ...