diff --git a/spug_web/src/pages/deploy/app/Ext1Setup3.js b/spug_web/src/pages/deploy/app/Ext1Setup3.js index 093df59..eba92a4 100644 --- a/spug_web/src/pages/deploy/app/Ext1Setup3.js +++ b/spug_web/src/pages/deploy/app/Ext1Setup3.js @@ -5,7 +5,7 @@ */ import React from 'react'; import { observer } from 'mobx-react'; -import { Form, Row, Col, Button, Radio, Icon, message } from "antd"; +import { Form, Row, Col, Button, Radio, Icon, Tooltip, message } from "antd"; import { LinkButton } from 'components'; import Editor from 'react-ace'; import 'ace-builds/src-noconflict/mode-text'; @@ -20,6 +20,17 @@ import { cleanCommand } from "../../../libs"; class Ext1Setup3 extends React.Component { constructor(props) { super(props); + this.helpMap = { + '2': + Spug 内置了一些全局变量,这些变量可以直接使用,请参考官方文档: + 全局变量 + , + '3': '在部署 Spug 的服务器上运行,可以执行任意自定义命令。', + '4': '在部署 Spug 的服务器上运行,当前目录为检出后待发布的源代码目录,可执行任意自定义命令。', + '5': '在发布的目标主机上运行,当前目录为目标主机上待发布的源代码目录,可执行任意自定义命令。', + '6': '在发布的目标主机上运行,当前目录为已发布的应用目录,可执行任意自定义命令。' + }; this.state = { loading: false, full: '' @@ -41,14 +52,22 @@ class Ext1Setup3 extends React.Component { }; FilterLabel = (props) => ( -