From a2f23064304b2d114914aa5fb094a584395d12fe Mon Sep 17 00:00:00 2001 From: whyour Date: Sun, 11 Sep 2022 22:47:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=89=B9=E9=87=8F=E9=87=8D?= =?UTF-8?q?=E6=96=B0=E5=AE=89=E8=A3=85=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/docker-entrypoint.sh | 2 ++ shell/update.sh | 2 ++ src/pages/dependence/index.tsx | 31 +++++++++++++++++++++++++++++++ 3 files changed, 35 insertions(+) diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.sh index 34cf019e..c85f154e 100755 --- a/docker/docker-entrypoint.sh +++ b/docker/docker-entrypoint.sh @@ -4,6 +4,8 @@ dir_shell=/ql/shell . $dir_shell/share.sh link_shell +export isFirstStartServer=true + echo -e "======================1. 检测配置文件========================\n" make_dir /etc/nginx/conf.d make_dir /run/nginx diff --git a/shell/update.sh b/shell/update.sh index b9bd6163..8baff37b 100755 --- a/shell/update.sh +++ b/shell/update.sh @@ -246,6 +246,8 @@ usage() { update_qinglong() { patch_version + export isFirstStartServer=false + local no_restart="$1" local all_branch=$(git branch -a) local primary_branch="master" diff --git a/src/pages/dependence/index.tsx b/src/pages/dependence/index.tsx index 98d9c96b..6b39ed60 100644 --- a/src/pages/dependence/index.tsx +++ b/src/pages/dependence/index.tsx @@ -320,6 +320,30 @@ const Dependence = ({ headerStyle, isPhone, socketMessage }: any) => { }); }; + const handlereInstallDependencies = () => { + Modal.confirm({ + title: '确认重新安装', + content: <>确认重新安装选中的依赖吗, + onOk() { + request + .put(`${config.apiPrefix}dependencies/reinstall`, { + data: selectedRowIds, + }) + .then((data: any) => { + if (data.code === 200) { + setSelectedRowIds([]); + getDependencies(); + } else { + message.error(data); + } + }); + }, + onCancel() { + console.log('Cancel'); + }, + }); + }; + const getDependenceDetail = (dependence: any) => { request .get(`${config.apiPrefix}dependencies/${dependence.id}`) @@ -403,6 +427,13 @@ const Dependence = ({ headerStyle, isPhone, socketMessage }: any) => { <> {selectedRowIds.length > 0 && (
+