forked from nsjcy/frontEnd/nsjcy

LiuWenHaoU
2020-05-18 bd09ddbe5eae5e780393d37b72b4da6d4e92fdb8
1
2
3
4
5
6
7
8
9
import fetch from './_fetch';
import { message } from 'antd';
export default (id) => fetch(`api/activity/publish?activityId=${id}&status=1`)
    .then(
        json => json
    )
    .catch(
        error => message.error('发布失败,请联系管理员', 2)
    );