forked from Gitlink/forgeplus-react
检测是否上传了文件
This commit is contained in:
parent
033134fa83
commit
0dcaea3db4
|
@ -58,7 +58,7 @@ export function initAxiosInterceptors(props) {
|
|||
// TODO 避免重复的请求 https://github.com/axios/axios#cancellation
|
||||
var
|
||||
proxy = "http://localhost:3000";
|
||||
proxy = "https://testforgeplus.trustie.net";
|
||||
proxy = "http://39.105.176.215:49999";
|
||||
|
||||
const requestMap = {};
|
||||
window.setfalseInRequestMap = function (keyName) {
|
||||
|
|
|
@ -14,6 +14,10 @@ function SpecialModal({ visible , hideModal , sureModal , showNotification , use
|
|||
}
|
||||
|
||||
function sure(){
|
||||
if(!id || (id && id.length === 0)){
|
||||
showNotification("请先提交文件进行审核!");
|
||||
return;
|
||||
}
|
||||
if(!user_apply_signatures || (user_apply_signatures && user_apply_signatures.status !== "waiting")){
|
||||
const url = `/apply_signatures.json`;
|
||||
axios.post(url,{
|
||||
|
|
Loading…
Reference in New Issue