fix issues

pull/360/head
vapao 2021-07-27 11:30:45 +08:00
parent f273e44b63
commit 1b32f356d0
1 changed files with 4 additions and 0 deletions

View File

@ -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;