检测是否上传了文件

This commit is contained in:
caishi 2020-12-31 14:13:31 +08:00
parent 033134fa83
commit 0dcaea3db4
2 changed files with 5 additions and 1 deletions

View File

@ -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) {

View File

@ -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,{