From 1b32f356d03129c6926648c242aee92e387a625c Mon Sep 17 00:00:00 2001 From: vapao Date: Tue, 27 Jul 2021 11:30:45 +0800 Subject: [PATCH] fix issues --- spug_web/src/pages/deploy/app/Ext1Setup3.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spug_web/src/pages/deploy/app/Ext1Setup3.js b/spug_web/src/pages/deploy/app/Ext1Setup3.js index 86aff74..97d5db2 100644 --- a/spug_web/src/pages/deploy/app/Ext1Setup3.js +++ b/spug_web/src/pages/deploy/app/Ext1Setup3.js @@ -23,6 +23,10 @@ export default observer(function () { ) function handleSubmit() { + const {dst_dir, dst_repo} = store.deploy; + if (dst_repo.includes(dst_dir.replace(/\/*$/, ''))) { + return message.error('存储路径不能位于部署路径内') + } setLoading(true); const info = store.deploy; info['app_id'] = store.app_id;