This commit is contained in:
parent
5e6af34fe5
commit
95f53bc280
|
|
@ -8,7 +8,7 @@
|
||||||
<meta http-equiv="Content-Security-Policy" content="script-src 'self'">
|
<meta http-equiv="Content-Security-Policy" content="script-src 'self'">
|
||||||
<!-- <meta http-equiv="Content-Security-Policy"
|
<!-- <meta http-equiv="Content-Security-Policy"
|
||||||
content="script-src 'self' https://www.google-analytics.com; style-src 'self' https://animate.style"> -->
|
content="script-src 'self' https://www.google-analytics.com; style-src 'self' https://animate.style"> -->
|
||||||
<title>智汇享</title>
|
<title></title>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
|
||||||
6
main.js
6
main.js
|
|
@ -627,9 +627,9 @@ function updateHandle() {
|
||||||
updateAva: '检测到新版本,正在下载……',
|
updateAva: '检测到新版本,正在下载……',
|
||||||
updateNotAva: '已经是最新版本,不用更新'
|
updateNotAva: '已经是最新版本,不用更新'
|
||||||
}
|
}
|
||||||
autoUpdater.setFeedURL('https://meeting-api.23544.com/meeting/update')
|
autoUpdater.setFeedURL(updateJs.getUpdateUrl(env))
|
||||||
autoUpdater.autoDownload = ture // 不自动下载安装包
|
autoUpdater.autoDownload = false // 不自动下载安装包
|
||||||
autoUpdater.autoInstallOnAppQuit = ture // 不自动安装
|
autoUpdater.autoInstallOnAppQuit = false // 不自动安装
|
||||||
autoUpdater.on('error', function (error) {
|
autoUpdater.on('error', function (error) {
|
||||||
sendUpdateMessage(message.error)
|
sendUpdateMessage(message.error)
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ import UserListWindow from "@/page/Meeting/UserListWindow";
|
||||||
import ChatSmallWindow from "@/page/Meeting/ChatSmallWindow";
|
import ChatSmallWindow from "@/page/Meeting/ChatSmallWindow";
|
||||||
import ChatBigWindow from "@/page/Meeting/ChatBigWindow";
|
import ChatBigWindow from "@/page/Meeting/ChatBigWindow";
|
||||||
import NoticeWindow from "@/page/Meeting/NoticeWindow";
|
import NoticeWindow from "@/page/Meeting/NoticeWindow";
|
||||||
import { getKeyOpenChildWindow, setKeyOpenChildWindow, storageSeeting } from "./utils/package/public";
|
import { getKeyOpenChildWindow, getTitle, setKeyOpenChildWindow, storageSeeting } 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 = () => {
|
||||||
|
|
@ -172,6 +172,7 @@ const App: React.FC = () => {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
document.getElementsByTagName('title')[0].innerText = getTitle(import.meta.env.VITE_ENV)
|
||||||
}, [])
|
}, [])
|
||||||
const handleResize = (): void => {
|
const handleResize = (): void => {
|
||||||
setWindowSize({
|
setWindowSize({
|
||||||
|
|
|
||||||
|
|
@ -62,4 +62,12 @@ export const getUpdateUrl = (env: string) => {
|
||||||
default:
|
default:
|
||||||
return 'https://meeting-api.23544.com/meeting/update'
|
return 'https://meeting-api.23544.com/meeting/update'
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
export const getTitle = (env: string) => {
|
||||||
|
switch (env) {
|
||||||
|
case 'xy':
|
||||||
|
return '湖北襄阳四中教研平台'
|
||||||
|
default:
|
||||||
|
return '智汇享'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue