From 2fa5fbd6a0f33b485c2365cf33b86c8779ea8c52 Mon Sep 17 00:00:00 2001 From: Dellear <358009775@qq.com> Date: Sun, 7 Mar 2021 16:31:26 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- panel/public/run.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panel/public/run.html b/panel/public/run.html index a94d2ec..db4b922 100644 --- a/panel/public/run.html +++ b/panel/public/run.html @@ -137,7 +137,7 @@

运行日志

} editor.setValue(''); - const cmd = this.id === 'git_pull' ? 'bash git_pull' : this.id === 'export_sharecodes' ? 'bash export_sharecodes' : `bash jd ${this.id}`; + const cmd = ['git_pull', 'export_sharecodes'].includes(this.id) ? `bash ${this.id}` : `bash jd ${this.id}`; $.post('./runCmd', {cmd: cmd}, function (data) { editor.setValue(data.msg); From 66a9ae75e3bf5c3febc127c53d91a2f25c439a16 Mon Sep 17 00:00:00 2001 From: Dellear <358009775@qq.com> Date: Sun, 7 Mar 2021 16:32:19 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=A4=9A=E4=B8=AAdocker?= =?UTF-8?q?=E5=90=8C=E6=97=B6=E7=99=BB=E9=99=86=E4=BC=9A=E5=86=B2=E7=AA=81?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- panel/server.js | 1 + 1 file changed, 1 insertion(+) diff --git a/panel/server.js b/panel/server.js index 1b3d2a7..8d90ed7 100755 --- a/panel/server.js +++ b/panel/server.js @@ -289,6 +289,7 @@ function getLastModifyFilePath(dir) { var app = express(); app.use(session({ secret: 'secret', + name: `connect.${Math.random()}`, resave: true, saveUninitialized: true }));