This commit is contained in:
parent
7ad3970e4e
commit
4f0997bfc1
10
main.js
10
main.js
|
|
@ -255,11 +255,11 @@ app.on('ready', () => {
|
||||||
}
|
}
|
||||||
// 设置窗口尺寸
|
// 设置窗口尺寸
|
||||||
mainWindow.setSize(config.width, config.height)
|
mainWindow.setSize(config.width, config.height)
|
||||||
// 设置窗口位置使其居中于当前屏幕
|
// // 设置窗口位置使其居中于当前屏幕
|
||||||
const display = screen.getDisplayMatching({...mainWindow.getBounds()});
|
// const display = screen.getDisplayMatching({...mainWindow.getBounds()});
|
||||||
const x = Math.round((display.workArea.width - mainWindow.getSize()[0]) / 2);
|
// const x = Math.round((display.workArea.width - mainWindow.getSize()[0]) / 2);
|
||||||
const y = Math.round((display.workArea.height - mainWindow.getSize()[1]) / 2);
|
// const y = Math.round((display.workArea.height - mainWindow.getSize()[1]) / 2);
|
||||||
mainWindow.setPosition(x, y);
|
// mainWindow.setPosition(x, y);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ import { useState, useImperativeHandle, forwardRef } from "react";
|
||||||
import { PostRefresh } from '@/api/Login';
|
import { PostRefresh } from '@/api/Login';
|
||||||
import Avatar from '@/components/Avatar';
|
import Avatar from '@/components/Avatar';
|
||||||
import { useNavigate } from 'react-router-dom';
|
import { useNavigate } from 'react-router-dom';
|
||||||
const JoinSetting = forwardRef((props: any, ref: any) => {
|
const JoinSetting = forwardRef((_props: any, ref: any) => {
|
||||||
useImperativeHandle(ref, () => ({
|
useImperativeHandle(ref, () => ({
|
||||||
changeModal: (roomNum: string = '') => {
|
changeModal: (roomNum: string = '') => {
|
||||||
let userInfo = JSON.parse(storage.getItem('user') as string)
|
let userInfo = JSON.parse(storage.getItem('user') as string)
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,6 @@ const SharedFilesModel = forwardRef((props: any, ref: any) => {
|
||||||
centered
|
centered
|
||||||
width={'800px'}
|
width={'800px'}
|
||||||
onCancel={() => setIsSharedFilesModel(false)}
|
onCancel={() => setIsSharedFilesModel(false)}
|
||||||
maskClosable
|
|
||||||
>
|
>
|
||||||
<div>
|
<div>
|
||||||
<div className={styles.sharedFilesModel}>
|
<div className={styles.sharedFilesModel}>
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ const UpdateModal = forwardRef((props: any, ref: any) => {
|
||||||
centered
|
centered
|
||||||
width={'338px'}
|
width={'338px'}
|
||||||
className='modal-padding'
|
className='modal-padding'
|
||||||
maskClosable={true}
|
maskClosable={false}
|
||||||
>
|
>
|
||||||
<div className={styles.isUpdateModal} style={{ backgroundImage: `url(${ImageUrl.icon7})` }}>
|
<div className={styles.isUpdateModal} style={{ backgroundImage: `url(${ImageUrl.icon7})` }}>
|
||||||
<div className={styles.remarks}>
|
<div className={styles.remarks}>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue