diff --git a/spug_api/apps/exec/executors.py b/spug_api/apps/exec/executors.py index c57fcf1..6b1057a 100644 --- a/spug_api/apps/exec/executors.py +++ b/spug_api/apps/exec/executors.py @@ -26,6 +26,7 @@ class Job: SPUG_HOST_HOSTNAME=hostname, SPUG_SSH_PORT=str(port), SPUG_SSH_USERNAME=username, + SPUG_INTERPRETER=interpreter ) def _send(self, message, with_expire=False): diff --git a/spug_web/src/pages/exec/task/index.js b/spug_web/src/pages/exec/task/index.js index ac9b1cd..0e6afb1 100644 --- a/spug_web/src/pages/exec/task/index.js +++ b/spug_web/src/pages/exec/task/index.js @@ -66,7 +66,7 @@ function TaskIndex() { style={{marginBottom: 24}} icon={} onClick={() => store.showHost = true}>从主机列表中选择 - + Shell Python + 全局变量 diff --git a/spug_web/src/pages/exec/task/index.module.less b/spug_web/src/pages/exec/task/index.module.less index 4f0e1ad..2096ed2 100644 --- a/spug_web/src/pages/exec/task/index.module.less +++ b/spug_web/src/pages/exec/task/index.module.less @@ -43,6 +43,12 @@ pre { margin: 0; } +.tips { + position: absolute; + top: 10px; + left: 180px; +} + .hisBlock { width: 40%; display: flex; @@ -118,4 +124,8 @@ pre { border-color: #1890ff; background-color: #e6f7ff; } +} + +.output { + } \ No newline at end of file