yangjie #22
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 ChatBigWindow from "@/page/Meeting/ChatBigWindow";
|
||||||
import CurrentSpeakUserWindow from "@/page/Meeting/CurrentSpeakUserWindow";
|
import CurrentSpeakUserWindow from "@/page/Meeting/CurrentSpeakUserWindow";
|
||||||
import NoticeWindow from "@/page/Meeting/NoticeWindow";
|
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 fs = require('fs').promises;
|
||||||
const { exec } = require('child_process');
|
const { exec } = require('child_process');
|
||||||
const App: React.FC = () => {
|
const App: React.FC = () => {
|
||||||
|
|
@ -234,6 +234,20 @@ const App: React.FC = () => {
|
||||||
};
|
};
|
||||||
const leaveChannel = async (bool?: boolean): Promise<void> => {
|
const leaveChannel = async (bool?: boolean): Promise<void> => {
|
||||||
if (location.hash.indexOf('/meeting') === 1) {
|
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);
|
const data = JSON.parse(localStorage.stateInfo);
|
||||||
if (!bool) {
|
if (!bool) {
|
||||||
await GetLeave({
|
await GetLeave({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue