退户登录优化
This commit is contained in:
parent
170ff9b122
commit
b7d41eff22
16
src/App.tsx
16
src/App.tsx
|
|
@ -24,7 +24,7 @@ import ChatSmallWindow from "@/page/Meeting/ChatSmallWindow";
|
|||
import ChatBigWindow from "@/page/Meeting/ChatBigWindow";
|
||||
import CurrentSpeakUserWindow from "@/page/Meeting/CurrentSpeakUserWindow";
|
||||
import NoticeWindow from "@/page/Meeting/NoticeWindow";
|
||||
import { getKeyOpenChildWindow } from "./utils/package/public";
|
||||
import { getKeyOpenChildWindow, setKeyOpenChildWindow } from "./utils/package/public";
|
||||
const fs = require('fs').promises;
|
||||
const { exec } = require('child_process');
|
||||
const App: React.FC = () => {
|
||||
|
|
@ -234,6 +234,20 @@ const App: React.FC = () => {
|
|||
};
|
||||
const leaveChannel = async (bool?: boolean): Promise<void> => {
|
||||
if (location.hash.indexOf('/meeting') === 1) {
|
||||
window.electron.closeChildWindow('shareScreenWindow')
|
||||
setKeyOpenChildWindow('shareScreenWindow', false)
|
||||
window.electron.setViewStatus('show')
|
||||
window.electron.getWindowSize().then((res: any) => {
|
||||
window.electron.setMainWindowSize({
|
||||
width: Math.ceil(res.width / 1.5),
|
||||
height: Math.ceil(res.height / 1.3),
|
||||
})
|
||||
window.electron.getIsMaximized().then((b: boolean) => {
|
||||
if (!b) {
|
||||
window.electron.setViewStatus('maximize')
|
||||
}
|
||||
})
|
||||
})
|
||||
const data = JSON.parse(localStorage.stateInfo);
|
||||
if (!bool) {
|
||||
await GetLeave({
|
||||
|
|
|
|||
Loading…
Reference in New Issue