diff --git a/index.html b/index.html
index e3ab5f4..1061ae2 100644
--- a/index.html
+++ b/index.html
@@ -8,7 +8,7 @@
-
智汇享
+
diff --git a/main.js b/main.js
index e1889b0..d80b57d 100644
--- a/main.js
+++ b/main.js
@@ -627,9 +627,9 @@ function updateHandle() {
updateAva: '检测到新版本,正在下载……',
updateNotAva: '已经是最新版本,不用更新'
}
- autoUpdater.setFeedURL('https://meeting-api.23544.com/meeting/update')
- autoUpdater.autoDownload = ture // 不自动下载安装包
- autoUpdater.autoInstallOnAppQuit = ture // 不自动安装
+ autoUpdater.setFeedURL(updateJs.getUpdateUrl(env))
+ autoUpdater.autoDownload = false // 不自动下载安装包
+ autoUpdater.autoInstallOnAppQuit = false // 不自动安装
autoUpdater.on('error', function (error) {
sendUpdateMessage(message.error)
})
diff --git a/src/App.tsx b/src/App.tsx
index ada9605..230d88e 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -21,7 +21,7 @@ import UserListWindow from "@/page/Meeting/UserListWindow";
import ChatSmallWindow from "@/page/Meeting/ChatSmallWindow";
import ChatBigWindow from "@/page/Meeting/ChatBigWindow";
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 { exec } = require('child_process');
const App: React.FC = () => {
@@ -172,6 +172,7 @@ const App: React.FC = () => {
event.preventDefault();
}
});
+ document.getElementsByTagName('title')[0].innerText = getTitle(import.meta.env.VITE_ENV)
}, [])
const handleResize = (): void => {
setWindowSize({
diff --git a/src/utils/package/public.ts b/src/utils/package/public.ts
index 0dba0e1..f7e21a9 100644
--- a/src/utils/package/public.ts
+++ b/src/utils/package/public.ts
@@ -62,4 +62,12 @@ export const getUpdateUrl = (env: string) => {
default:
return 'https://meeting-api.23544.com/meeting/update'
}
+}
+export const getTitle = (env: string) => {
+ switch (env) {
+ case 'xy':
+ return '湖北襄阳四中教研平台'
+ default:
+ return '智汇享'
+ }
}
\ No newline at end of file