import fetch from '../fetch';
import { getBaseUrl } from '@/utils/index';


export const uploadExcel = (data,projectId) => {
    // return utils.checkAuth(()=>{
    return fetch({
        headers: {
            'Content-Type': 'application/json;charset=UTF-8',
            sysCode: 12,
            token: localStorage.getItem('storageToken'),
        },
        url: getBaseUrl('portal/portalProjectOrRole/importRoleFile?projectId='+projectId),
        method: 'post',
        data: data,
        description: '上传excel文件',
    })
    // })
}