From 0dcaea3db4ef32d6d21e2add83ce7f019f07064b Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Thu, 31 Dec 2020 14:13:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A3=80=E6=B5=8B=E6=98=AF=E5=90=A6=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E4=BA=86=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/AppConfig.js | 2 +- src/forge/Main/SpecialModal.jsx | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/AppConfig.js b/src/AppConfig.js index a369d843..ca941733 100644 --- a/src/AppConfig.js +++ b/src/AppConfig.js @@ -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) { diff --git a/src/forge/Main/SpecialModal.jsx b/src/forge/Main/SpecialModal.jsx index afd021f2..26394804 100644 --- a/src/forge/Main/SpecialModal.jsx +++ b/src/forge/Main/SpecialModal.jsx @@ -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,{