From bc88c5c815c563ac12b60ef76bc34c7e50e6b3a0 Mon Sep 17 00:00:00 2001 From: vapao Date: Sat, 18 Sep 2021 00:17:39 +0800 Subject: [PATCH] fix issues --- spug_web/src/pages/deploy/app/Ext1Setup3.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spug_web/src/pages/deploy/app/Ext1Setup3.js b/spug_web/src/pages/deploy/app/Ext1Setup3.js index 6d45ebb..daa429b 100644 --- a/spug_web/src/pages/deploy/app/Ext1Setup3.js +++ b/spug_web/src/pages/deploy/app/Ext1Setup3.js @@ -19,7 +19,9 @@ export default observer(function () { function handleSubmit() { const {dst_dir, dst_repo} = store.deploy; - if (dst_repo.includes(dst_dir.replace(/\/*$/, ''))) { + const t_dst_dir = dst_dir.replace(/\/*$/, '/'); + const t_dst_repo = dst_repo.replace(/\/*$/, '/'); + if (t_dst_repo.includes(t_dst_dir)) { return message.error('存储路径不能位于部署路径内') } setLoading(true);