From 31f90e250dec95afe97ddbe4939750f5711b60ad Mon Sep 17 00:00:00 2001
From: yj <1336058017@qq.com>
Date: Wed, 13 Nov 2024 15:12:41 +0800
Subject: [PATCH 1/7] =?UTF-8?q?=E4=BA=BA=E5=91=98=E7=AD=BE=E5=88=B0?=
=?UTF-8?q?=E7=BB=91=E5=AE=9A?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/Home/User/index.ts | 28 ++++-
src/page/Home/User/index.module.scss | 15 +++
src/page/Home/User/index.tsx | 182 +++++++++++++++++++++++++--
src/utils/styles/App.scss | 14 +++
4 files changed, 225 insertions(+), 14 deletions(-)
diff --git a/src/api/Home/User/index.ts b/src/api/Home/User/index.ts
index 0a3b33c..579ed76 100644
--- a/src/api/Home/User/index.ts
+++ b/src/api/Home/User/index.ts
@@ -57,4 +57,30 @@ export const PostUserImport = (data: any) =>
url: `/user/import`,
method: 'post',
data
- })
\ No newline at end of file
+ })
+
+export const GetSigninList = () =>
+ request({
+ url: `/user/signin-list`,
+ method: 'get',
+ })
+
+export const PostUserImportSigninList = (data: any) =>
+ request({
+ url: `/user/import/signin-list`,
+ method: 'post',
+ data
+ })
+
+export const GetSigns = (uid: string) =>
+ request({
+ url: `/user/signs?uid=${uid}`,
+ method: 'get',
+ })
+
+export const PutSigns = (uid: string, data: any) =>
+ request({
+ url: `/user/signs?uid=${uid}`,
+ method: 'put',
+ data,
+ })
diff --git a/src/page/Home/User/index.module.scss b/src/page/Home/User/index.module.scss
index e0d7e8a..68a02b2 100644
--- a/src/page/Home/User/index.module.scss
+++ b/src/page/Home/User/index.module.scss
@@ -98,4 +98,19 @@
text-align: right;
}
}
+}
+
+.signInUserModal {
+ max-height: 60vh;
+ display: flex;
+ flex-direction: column;
+
+ >div:nth-child(1) {
+ flex-grow: 1;
+ overflow-y: auto;
+ }
+
+ >div:nth-child(2) {
+ flex-shrink: 0;
+ }
}
\ No newline at end of file
diff --git a/src/page/Home/User/index.tsx b/src/page/Home/User/index.tsx
index 4a1ad55..34812c9 100644
--- a/src/page/Home/User/index.tsx
+++ b/src/page/Home/User/index.tsx
@@ -3,7 +3,7 @@ import { useEffect, useState, useRef } from "react";
import Operation from '@/components/Operation';
import { Button, Input, Table, Pagination, Modal, message, Select } from "antd";
import { ExclamationCircleFilled, SearchOutlined } from '@ant-design/icons';
-import { GetUserList, PostUser, PutUser, DeleteUser, PutUserPwd, GetRoleDpList, PostUserImport, GetSubDpList, PutUserBth } from '@/api/Home/User';
+import { GetUserList, PostUser, PutUser, DeleteUser, PutUserPwd, GetRoleDpList, PostUserImport, GetSubDpList, PutUserBth, GetSigninList, PostUserImportSigninList, GetSigns, PutSigns } from '@/api/Home/User';
import * as CryptoJS from 'crypto-js';
import ImageUrl from '@/utils/package/imageUrl';
import { storage } from '@/utils';
@@ -35,8 +35,14 @@ const User: React.FC = () => {
year: '0',
})
const [changeUserPawModal, setChangeUserPawModal] = useState(false)
+ const [signInModal, setSignInModal] = useState(false)
+ const [signInUserModal, setSignInUserModal] = useState(false)
+ const [signInUserForm, setSignInUserForm] = useState({
+ currentUserList: [],
+ uid: ''
+ })
const [changeImportModal, setChangeImportModal] = useState(false)
- const [changeUserPawFrom, setChangeUserPawFrom] = useState({
+ const [changeUserPawForm, setChangeUserPawForm] = useState({
Pwd: "",
newPwd: '',
})
@@ -94,6 +100,7 @@ const User: React.FC = () => {
const buffer = Buffer.from(arrayBuffer);
await fs.writeFile(`${setting.shareFilesPath}\\${data.fileName}`, buffer, {});
setChangeImportModal(false)
+ setSignInModal(false)
confirm({
title: '提示',
icon: ,
@@ -207,6 +214,13 @@ const User: React.FC = () => {
>
删除用户
+
{
{subjectList.find((subject: any) => subject.value === item.subject)?.label}
>
)} />
-
(
+ (
<>
+
>
)} />
@@ -478,10 +511,10 @@ const User: React.FC = () => {
{
- setChangeUserPawFrom({
- ...changeUserPawFrom,
+ setChangeUserPawForm({
+ ...changeUserPawForm,
Pwd: e.target.value,
});
}}
@@ -492,10 +525,10 @@ const User: React.FC = () => {
{
- setChangeUserPawFrom({
- ...changeUserPawFrom,
+ setChangeUserPawForm({
+ ...changeUserPawForm,
newPwd: e.target.value,
});
}}
@@ -507,14 +540,14 @@ const User: React.FC = () => {
}}>
+ setSignInModal(false)} footer={null} centered width={'300px'}>
+
+
+
+
+
+
+
+
+
+ setSignInUserModal(false)} footer={null} centered width={'300px'}>
+
+
+ {signInUserForm.currentUserList.map((item: any, index: number) => {
+ return (
+
+
{
+ let currentUserListTemp: any = [...signInUserForm.currentUserList]
+ currentUserListTemp[index].signInName = e.target.value
+ setSignInUserForm({
+ ...signInUserForm,
+ currentUserList: currentUserListTemp,
+ })
+ }}
+ />
+

{
+ let currentUserListTemp: any = [...signInUserForm.currentUserList]
+ currentUserListTemp.splice(index, 1)
+ setSignInUserForm({
+ ...signInUserForm,
+ currentUserList: currentUserListTemp,
+ })
+ }} />
+
+ )
+ })
+ }
+
+
+
+
+
+
+
+
>
)
diff --git a/src/utils/styles/App.scss b/src/utils/styles/App.scss
index ab2bc9a..e82a365 100644
--- a/src/utils/styles/App.scss
+++ b/src/utils/styles/App.scss
@@ -26,6 +26,20 @@ $pagination-hover-background-color: #5575F2;
.ant-select-suffix {
color: white !important;
}
+
+ .ant-select-selection-overflow-item {
+ .ant-select-selection-item {
+ background-color: rgba(0, 0, 0, 0.6);
+ }
+
+ .ant-select-selection-item-remove {
+ color: white !important;
+ }
+ }
+
+ .ant-select-selection-search-input {
+ color: white !important;
+ }
}
// input
--
2.40.1
From 2362fabee5042379bbd35126d3565456b947fd65 Mon Sep 17 00:00:00 2001
From: yj <1336058017@qq.com>
Date: Wed, 13 Nov 2024 16:25:39 +0800
Subject: [PATCH 2/7] =?UTF-8?q?=E6=88=BF=E9=97=B4=E5=86=85=E7=AD=BE?=
=?UTF-8?q?=E5=88=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/Meeting/index.ts | 13 ++++
src/assets/icon52-select.png | Bin 0 -> 3923 bytes
src/assets/icon52.png | Bin 0 -> 2915 bytes
src/components/SingIn/index.module.scss | 32 ++++++++++
src/components/SingIn/index.tsx | 77 ++++++++++++++++++++++++
src/page/Meeting/index.tsx | 39 +++++++++++-
src/utils/package/imageUrl.ts | 4 ++
7 files changed, 163 insertions(+), 2 deletions(-)
create mode 100644 src/assets/icon52-select.png
create mode 100644 src/assets/icon52.png
create mode 100644 src/components/SingIn/index.module.scss
create mode 100644 src/components/SingIn/index.tsx
diff --git a/src/api/Meeting/index.ts b/src/api/Meeting/index.ts
index 1c2ba98..3733fae 100644
--- a/src/api/Meeting/index.ts
+++ b/src/api/Meeting/index.ts
@@ -134,4 +134,17 @@ export const GetPolling = (roomNum: string, count: string) =>
request({
url: `/room/polling?roomNum=${roomNum}&count=${count}`,
method: 'get'
+ })
+
+export const GetRoomSingnIn = () =>
+ request({
+ url: `/room/sign-in`,
+ method: 'get'
+ })
+
+export const PostRoomSingnIn = (data: any) =>
+ request({
+ url: `/room/sign-in`,
+ method: 'post',
+ data
})
\ No newline at end of file
diff --git a/src/assets/icon52-select.png b/src/assets/icon52-select.png
new file mode 100644
index 0000000000000000000000000000000000000000..38f3e0c5d8eb184f14909dbdb90cd0a626c2b387
GIT binary patch
literal 3923
zcmb7H_d6Sk_r^^%)Ci5O#AsSuwYC)3UL^=BL9dFLTdkeiqekpi)GA`ttWq^XRS^_5
zO3~0-ZPg57B>1}D|KM|;=bZPP^TT=H-_G+USllyUW#(t5qoZRrGSs!aK;lIX0vRu=
zDC0iyt1p)HzLo}m)76g({=OIhZrWzrbaby%uh9OvL`TQ=
z%Scz-I*5LgJMIQM%C>!oYrm?ztu!~I#LdyBmZZL`ZI
z=@>_p*|iOcEEsg>OraciZ}YRIwruf~;?;Rs+B@B9EEj_Mk@
zB^H8}y~1No7}Qr$mD_+77MEs~zhJgCA{SW!q~A^nTZD>QCC>Jwij57N>Mabz)HM8O)%<(S@Dkf{FF58
zEGWK@RtZ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24by0#erq
zq%an~?1RX;o>#z`!CW?{RvtzacL{@)U@mu;pfGEECL-3SP@a_nH(VZ0IiQaSL2gz@
zFaS3V1E3fO+l9DsPm(Nf^L>4}6wEq3(^cwIYu}FlV~w(sthZM9R2iGbq-E|#EL3i&
z;{YN`o#A$8u79Bbv)+LdyQFobI!3&-;_rdyeBmP+WUVDR8cqLEz=b)z181@}r{WE}
z{e0>a?$hatqIFlhfypJm2K7Hj8u$mo3o)Cj)aM=7MlV$W&gS)q(xaalhH#F|bB}oQ
zRf^O+A=oe>u4JNY42-D@^<4QlYh3TwqF!`0ksenba%bJto3W5Q0Ff7e{?THQzl0Q~
zZqfTS22PBDWj?3lgt(~BpPse`5nb0NpYm%IPQ<#Wa8&>jyu#4cig-z_3tM>uH#yIB
ziecYqbQ99VpLz9KK=QZD$>pwhI#hbug(^cL*crDNw*>&b@+xzPd4q5=`MiwX?=vL8_&*V_ibRl7vE(USVG6W`CH3aLg<};!9a17n}=|M-e6;>
z2ba}=By-Fpm7qbRnF_813Kf1qWhQ+AA#zbuNdod%Yhds7%{g&|wLtRdiv {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ border-bottom: 1px #363636 solid;
+ padding-bottom: 10px;
+
+ >span {
+ flex-grow: 1;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ font-size: 16px;
+ color: white;
+ }
+ }
+ }
+
+ .singInModalFooter {
+ flex-shrink: 0;
+ display: flex;
+ justify-content: center;
+ }
+}
\ No newline at end of file
diff --git a/src/components/SingIn/index.tsx b/src/components/SingIn/index.tsx
new file mode 100644
index 0000000..d37dbf7
--- /dev/null
+++ b/src/components/SingIn/index.tsx
@@ -0,0 +1,77 @@
+import { GetRoomSingnIn, PostRoomSingnIn } from '@/api/Meeting';
+import styles from '@/components/SingIn/index.module.scss'
+import { storage } from '@/utils';
+import { Button, message, Modal } from 'antd';
+import { useState, useImperativeHandle, forwardRef } from "react";
+const SingIn = forwardRef((props: any, ref: any) => {
+ useImperativeHandle(ref, () => ({
+ changeModal: () => {
+ setSingInModal(true)
+ getRoomSingnIn()
+ },
+ getModal: () => {
+ return new Promise((resolve, reject) => {
+ setSingInModal(bool => {
+ resolve(bool)
+ return bool
+ })
+ })
+ },
+ }))
+ const [singInModal, setSingInModal] = useState(false);
+ const [singInList, setSingInList] = useState([]);
+ const getRoomSingnIn = async (): Promise => {
+ await GetRoomSingnIn().then(res => {
+ if (res.code === 200) {
+ setSingInList(res.data.map((item: any) => {
+ return {
+ ...item,
+ active: true
+ }
+ }))
+ }
+ })
+ }
+ return (
+ <>
+ setSingInModal(false)}
+ centered
+ width={'300px'}
+ >
+
+
+ {singInList.map((item: any, index: number) => {
+ return
+ {item.signInName}
+ {item.active ?
+
+ : }
+
+ })}
+
+
+
+
+
+
+ >
+ )
+})
+
+export default SingIn
\ No newline at end of file
diff --git a/src/page/Meeting/index.tsx b/src/page/Meeting/index.tsx
index 862083d..993ec24 100644
--- a/src/page/Meeting/index.tsx
+++ b/src/page/Meeting/index.tsx
@@ -23,6 +23,7 @@ import { role } from '@/config/role';
import { fixWebmDuration } from "webm-duration-fix-buffer";
import { getKeyOpenChildWindow, setKeyOpenChildWindow } from '@/utils/package/public';
import MeetingDisconnected from '@/components/MeetingDisconnected';
+import SingIn from '@/components/SingIn';
const { confirm } = Modal;
const { exec } = require('child_process');
const fs = require('fs').promises;
@@ -36,6 +37,7 @@ const Meeting: React.FC = () => {
const stupWizardRef = useRef();
const equipmentManagementRef = useRef();
const meetingDisconnectedRef = useRef();
+ const singInRef = useRef();
const [isClicked, setIsClicked] = useState(false);
const [statusList, setStatusList] = useState({
userList: false,
@@ -102,6 +104,13 @@ const Meeting: React.FC = () => {
active: false,
select: false,
},
+ {
+ title: '签到',
+ icon: ImageUrl.icon52,
+ iconSelect: ImageUrl.icon52Select,
+ active: false,
+ select: false,
+ },
{
title: '设置',
icon: ImageUrl.icon28,
@@ -432,8 +441,18 @@ const Meeting: React.FC = () => {
} else {
message.error('当前不在会议室!')
}
+ singInRef.current.getModal().then((res: boolean) => {
+ if (!res) {
+ singInRef.current.changeModal()
+ }
+ })
},
onCancel() {
+ singInRef.current.getModal().then((res: boolean) => {
+ if (!res) {
+ singInRef.current.changeModal()
+ }
+ })
}
})
}
@@ -1455,7 +1474,6 @@ const Meeting: React.FC = () => {
await getUserRoomInfo().then(async (res) => {
stupWizardRef.current.changeModal(0, res)
})
-
break;
case '邀请人员':
await getUserRoomInfo().then(async (res) => {
@@ -1559,6 +1577,9 @@ const Meeting: React.FC = () => {
storage.setItem('noViewChatList', 0)
setNoViewChatList(0)
break;
+ case '签到':
+ singInRef.current.changeModal()
+ break;
}
}
// 停止录制
@@ -2705,10 +2726,23 @@ const Meeting: React.FC = () => {
{row.title}
+ case '签到':
+ if (!role.ID.includes(user.roleId)) {
+ return changeStatusList(row, itemIndex, rowIndex)}
+ onMouseDown={() => changeFooterListSelect(row, itemIndex, rowIndex, true)}
+ onMouseUp={() => changeFooterListSelect(row, itemIndex, rowIndex, false)}
+ onMouseLeave={() => changeFooterListSelect(row, itemIndex, rowIndex, false)}
+ key={rowIndex}>
+ {row.select ?

:

}
+
{row.title}
+
+ }
+ return null
case '申请发言':
// if (!role.ID.includes(user.roleId)) {
// return changeStatusList(row, itemIndex, rowIndex)} key={rowIndex}>
- //

+ // {row.select ?

:

}
//
{row.title}
//
// }
@@ -2917,6 +2951,7 @@ const Meeting: React.FC = () => {
+
>
)
}
diff --git a/src/utils/package/imageUrl.ts b/src/utils/package/imageUrl.ts
index 2722e37..3b8e6dc 100644
--- a/src/utils/package/imageUrl.ts
+++ b/src/utils/package/imageUrl.ts
@@ -79,6 +79,8 @@ import virtualBackground3 from '@/assets/virtualBackground/3.png'
import virtualBackground4 from '@/assets/virtualBackground/4.png'
import virtualBackground5 from '@/assets/virtualBackground/5.png'
import virtualBackground6 from '@/assets/virtualBackground/6.png'
+import icon52 from '@/assets/icon52.png'
+import icon52Select from '@/assets/icon52-select.png'
export default {
loading,
icon,
@@ -161,4 +163,6 @@ export default {
virtualBackground4,
virtualBackground5,
virtualBackground6,
+ icon52,
+ icon52Select
}
\ No newline at end of file
--
2.40.1
From be6de54c0d7f2a1975b41dbfd58e972d0b652926 Mon Sep 17 00:00:00 2001
From: yj <1336058017@qq.com>
Date: Wed, 13 Nov 2024 16:28:54 +0800
Subject: [PATCH 3/7] =?UTF-8?q?=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/page/Home/User/index.tsx | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/page/Home/User/index.tsx b/src/page/Home/User/index.tsx
index 34812c9..a380fc5 100644
--- a/src/page/Home/User/index.tsx
+++ b/src/page/Home/User/index.tsx
@@ -703,7 +703,7 @@ const User: React.FC = () => {
setSignInUserModal(false)} footer={null} centered width={'300px'}>
-
+
{signInUserForm.currentUserList.map((item: any, index: number) => {
return (
@@ -742,6 +742,12 @@ const User: React.FC = () => {
...signInUserForm,
currentUserList: currentUserListTemp,
})
+ setTimeout(() => {
+ const signInView = document.getElementById('signInView') as HTMLElement;
+ if (signInView) {
+ signInView.scrollTop = signInView.scrollHeight;
+ }
+ }, 0);
}}
style={{ width: '100%', marginBottom: '20px' }}
icon={

}
--
2.40.1
From 35ff92c99ac5005bf871b985bf1507c8403621b5 Mon Sep 17 00:00:00 2001
From: yj <1336058017@qq.com>
Date: Wed, 13 Nov 2024 17:25:46 +0800
Subject: [PATCH 4/7] =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=91=98=E4=B8=8D?=
=?UTF-8?q?=E9=9C=80=E8=A6=81=E8=B0=88=E7=AD=BE=E5=88=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/page/Meeting/index.tsx | 24 ++++++++++++++----------
1 file changed, 14 insertions(+), 10 deletions(-)
diff --git a/src/page/Meeting/index.tsx b/src/page/Meeting/index.tsx
index 993ec24..25d4e1b 100644
--- a/src/page/Meeting/index.tsx
+++ b/src/page/Meeting/index.tsx
@@ -441,18 +441,22 @@ const Meeting: React.FC = () => {
} else {
message.error('当前不在会议室!')
}
- singInRef.current.getModal().then((res: boolean) => {
- if (!res) {
- singInRef.current.changeModal()
- }
- })
+ if (!role.ID.includes(userInfo.roleId)) {
+ singInRef.current.getModal().then((res: boolean) => {
+ if (!res) {
+ singInRef.current.changeModal()
+ }
+ })
+ }
},
onCancel() {
- singInRef.current.getModal().then((res: boolean) => {
- if (!res) {
- singInRef.current.changeModal()
- }
- })
+ if (!role.ID.includes(userInfo.roleId)) {
+ singInRef.current.getModal().then((res: boolean) => {
+ if (!res) {
+ singInRef.current.changeModal()
+ }
+ })
+ }
}
})
}
--
2.40.1
From abfad93e599959e397fe51c2550d917761b10868 Mon Sep 17 00:00:00 2001
From: yj <1336058017@qq.com>
Date: Wed, 13 Nov 2024 17:32:26 +0800
Subject: [PATCH 5/7] =?UTF-8?q?=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/SingIn/index.tsx | 4 +++-
src/page/Meeting/index.tsx | 27 +++++++++++++--------------
2 files changed, 16 insertions(+), 15 deletions(-)
diff --git a/src/components/SingIn/index.tsx b/src/components/SingIn/index.tsx
index d37dbf7..58d64e9 100644
--- a/src/components/SingIn/index.tsx
+++ b/src/components/SingIn/index.tsx
@@ -6,7 +6,6 @@ import { useState, useImperativeHandle, forwardRef } from "react";
const SingIn = forwardRef((props: any, ref: any) => {
useImperativeHandle(ref, () => ({
changeModal: () => {
- setSingInModal(true)
getRoomSingnIn()
},
getModal: () => {
@@ -23,6 +22,9 @@ const SingIn = forwardRef((props: any, ref: any) => {
const getRoomSingnIn = async (): Promise
=> {
await GetRoomSingnIn().then(res => {
if (res.code === 200) {
+ if (res.data.length) {
+ setSingInModal(true)
+ }
setSingInList(res.data.map((item: any) => {
return {
...item,
diff --git a/src/page/Meeting/index.tsx b/src/page/Meeting/index.tsx
index 25d4e1b..67ef2e8 100644
--- a/src/page/Meeting/index.tsx
+++ b/src/page/Meeting/index.tsx
@@ -418,6 +418,15 @@ const Meeting: React.FC = () => {
firstFooterList[0][1].title = state.enableCamera ? '关闭视频' : '开启视频'
firstFooterList[0][1].active = !state.enableCamera
setFooterList(firstFooterList)
+ function showSingIn() {
+ if (!role.ID.includes(userInfo.roleId)) {
+ singInRef.current.getModal().then((res: boolean) => {
+ if (!res) {
+ singInRef.current.changeModal()
+ }
+ })
+ }
+ }
setTimeout(async () => {
const setting = await JSON.parse(storage.getItem('setting') as string);
const stateInfo = await JSON.parse(storage.getItem('stateInfo') as string);
@@ -441,22 +450,10 @@ const Meeting: React.FC = () => {
} else {
message.error('当前不在会议室!')
}
- if (!role.ID.includes(userInfo.roleId)) {
- singInRef.current.getModal().then((res: boolean) => {
- if (!res) {
- singInRef.current.changeModal()
- }
- })
- }
+ showSingIn()
},
onCancel() {
- if (!role.ID.includes(userInfo.roleId)) {
- singInRef.current.getModal().then((res: boolean) => {
- if (!res) {
- singInRef.current.changeModal()
- }
- })
- }
+ showSingIn()
}
})
}
@@ -465,6 +462,8 @@ const Meeting: React.FC = () => {
}
return data
})
+ } else {
+ showSingIn()
}
}, 10000);
return () => {
--
2.40.1
From a0795768e9aecb0113e7564a0624f24fd91b3ace Mon Sep 17 00:00:00 2001
From: youngq
Date: Wed, 13 Nov 2024 17:43:27 +0800
Subject: [PATCH 6/7] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8C=89=E9=92=AE?=
=?UTF-8?q?=E6=8F=8F=E8=BF=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/page/Home/User/index.tsx | 21 +++++++++++----------
1 file changed, 11 insertions(+), 10 deletions(-)
diff --git a/src/page/Home/User/index.tsx b/src/page/Home/User/index.tsx
index a380fc5..b83d7d7 100644
--- a/src/page/Home/User/index.tsx
+++ b/src/page/Home/User/index.tsx
@@ -167,14 +167,14 @@ const User: React.FC = () => {
}}
icon={
}
className='m-ant-btn'>
- 添加用户
+ 添加
+
}
@@ -214,13 +221,7 @@ const User: React.FC = () => {
>
删除用户
-
+
Date: Wed, 13 Nov 2024 17:59:09 +0800
Subject: [PATCH 7/7] =?UTF-8?q?=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/page/Meeting/index.tsx | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/page/Meeting/index.tsx b/src/page/Meeting/index.tsx
index 67ef2e8..bf368ba 100644
--- a/src/page/Meeting/index.tsx
+++ b/src/page/Meeting/index.tsx
@@ -463,7 +463,12 @@ const Meeting: React.FC = () => {
return data
})
} else {
- showSingIn()
+ setIsScreenCapture(bool => {
+ if (!bool) {
+ showSingIn()
+ }
+ return bool
+ })
}
}, 10000);
return () => {
--
2.40.1