支持单位授权与客户端限制
This commit is contained in:
@@ -20,7 +20,7 @@ import {
|
||||
getUpdateState,
|
||||
openReleasesPage,
|
||||
} from "../services/autoUpdater";
|
||||
import { getDeviceId } from "../services/system/deviceId";
|
||||
import { getDeviceId, getPrimaryLocalIp } from "../services/system/deviceId";
|
||||
import { getTrayManager } from "../window/trayManager";
|
||||
import { getAutoLaunchManager } from "../window/autoLaunchManager";
|
||||
import { APP_DISPLAY_NAME } from "@shared/constants";
|
||||
@@ -284,6 +284,10 @@ export function registerAppHandlers(ctx: HandlerContext): void {
|
||||
return getDeviceId();
|
||||
});
|
||||
|
||||
ipcMain.handle("app:getPrimaryLocalIp", () => {
|
||||
return getPrimaryLocalIp();
|
||||
});
|
||||
|
||||
ipcMain.handle("app:checkUpdate", async () => {
|
||||
try {
|
||||
return await checkForUpdates();
|
||||
|
||||
Reference in New Issue
Block a user