From 4798c7260b4eaeb0f2f5becb5f04ec83f42da271 Mon Sep 17 00:00:00 2001 From: vapao Date: Thu, 18 Jun 2020 15:33:18 +0800 Subject: [PATCH] =?UTF-8?q?U=20=E4=BC=98=E5=8C=96=E5=8F=91=E5=B8=83?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E8=A1=A8=E5=8D=95=E6=A0=A1=E9=AA=8C=E8=A7=84?= =?UTF-8?q?=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spug_web/src/pages/deploy/app/Ext1Setup2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spug_web/src/pages/deploy/app/Ext1Setup2.js b/spug_web/src/pages/deploy/app/Ext1Setup2.js index 8b0125f..8b9c663 100644 --- a/spug_web/src/pages/deploy/app/Ext1Setup2.js +++ b/spug_web/src/pages/deploy/app/Ext1Setup2.js @@ -26,7 +26,7 @@ class Ext1Setup2 extends React.Component { handleNext = () => { const {dst_dir, dst_repo} = store.deploy; - if (isSubArray(dst_repo.split('/'), dst_dir.split('/'))) { + if (dst_repo.includes(dst_dir.replace(/\/*$/, '/'))) { message.error('仓库目录不能位于发布部署目录内') } else { store.page += 1