From f4542e9ca948b2756cceb947d481613cb330c570 Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Mon, 30 Sep 2024 15:34:45 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E8=A7=92?= =?UTF-8?q?=E8=89=B2=E5=88=86=E9=85=8D=E7=94=A8=E6=88=B7=E5=8D=95=E4=B8=AA?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=97=B6=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/role/DistributeUser.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/views/system/role/DistributeUser.vue b/src/views/system/role/DistributeUser.vue index d5486f0..4ae96aa 100644 --- a/src/views/system/role/DistributeUser.vue +++ b/src/views/system/role/DistributeUser.vue @@ -320,9 +320,15 @@ const handleDialogSelect = (selection) => { } } const handleSubmit = (userIds) => { + let ids=[] + if(userIds instanceof Array){ + ids=userIds + }else{ + ids.push(userIds) + } roleBindUser({ id: roleId, - ids: userIds, + ids: ids, }).then(res => { if (res.code === 1000) { ElMessage.success(res.msg); From c32232a388e4fce4e558861ba319b88b5a670fce Mon Sep 17 00:00:00 2001 From: zhangkaihuai Date: Thu, 3 Oct 2024 09:03:18 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20docker.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker.sh b/docker.sh index 40db59a..3d3ef2d 100644 --- a/docker.sh +++ b/docker.sh @@ -12,5 +12,5 @@ docker rmi smartopsweb:latest echo '----build image start----' docker build -t smartopsweb:latest . echo '----build image success----' -docker run --name smartopsweb -d -p 8080:80 smartopsweb:latest +docker run --name smartopsweb -d -p 28081:80 smartopsweb:latest