From af8250f98dde1abdd7f49d723243b09b51062027 Mon Sep 17 00:00:00 2001 From: vapao Date: Thu, 11 Jun 2020 12:23:18 +0800 Subject: [PATCH] =?UTF-8?q?U=20=E4=BC=98=E5=8C=96=E5=B8=B8=E8=A7=84?= =?UTF-8?q?=E5=8F=91=E5=B8=83=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 | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/spug_web/src/pages/deploy/app/Ext1Setup2.js b/spug_web/src/pages/deploy/app/Ext1Setup2.js index 6f7522c..0e1bc78 100644 --- a/spug_web/src/pages/deploy/app/Ext1Setup2.js +++ b/spug_web/src/pages/deploy/app/Ext1Setup2.js @@ -5,7 +5,7 @@ */ import React from 'react'; import { observer } from 'mobx-react'; -import { Form, Input, Select, Button, Icon } from "antd"; +import { Form, Input, Select, Button, Icon, message } from "antd"; import store from './store'; import hostStore from 'pages/host/store'; import styles from './index.module.css'; @@ -23,6 +23,15 @@ class Ext1Setup2 extends React.Component { return info['dst_dir'] && info['dst_repo'] && info['versions'] && info['host_ids'].filter(x => x).length > 0 }; + handleNext = () => { + const {dst_dir, dst_repo} = store.deploy; + if (dst_repo.includes(dst_dir)) { + message.error('仓库目录不能位于发布部署目录内') + } else { + store.page += 1 + } + }; + render() { const info = store.deploy; return ( @@ -65,7 +74,7 @@ class Ext1Setup2 extends React.Component { - +