diff --git a/src/glcc/apply/index.jsx b/src/glcc/apply/index.jsx index de6e3353..bcc14677 100644 --- a/src/glcc/apply/index.jsx +++ b/src/glcc/apply/index.jsx @@ -1,9 +1,10 @@ import React , { useCallback, useEffect , useState } from 'react'; import { Breadcrumb, Button, Form, Input, Select, Upload, Modal } from 'antd'; +import {getUploadActionUrl} from 'educoder'; import {getUserApplyInfo, applyGlcc} from '../api'; import axios from 'axios'; import TextArea from 'antd/lib/input/TextArea'; -import { httpUrl } from '../fetch'; +import { main_site_url } from '../fetch'; import banner from "../img/banner.png"; import './index.scss'; const Option = Select.Option; @@ -80,7 +81,7 @@ function Apply(props) { onOk: ()=>{ const params ={ ...values, - projectLogoId: values.logo.file.response.data.id, + projectLogoId: values.logo.file.response.id, userId: current_user.user_id, userName: current_user.username } @@ -176,12 +177,12 @@ function Apply(props) { 'logo格式为png、jpg、jpeg,限制上传大小2m,建议上传尺寸为382*228', 'logo', [{ required: true, message: "请正确上传项目logo" }], - userApplyInfo && userApplyInfo.projectLogoId ?