From bfc381fcb69d82e1f4b17f508fc9d1655f6176d7 Mon Sep 17 00:00:00 2001 From: maomin Date: Wed, 8 Feb 2023 17:22:35 +0800 Subject: [PATCH] =?UTF-8?q?feat(menu):=20=E5=A2=9E=E5=8A=A0=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/main/server.ts | 2 +- ui/src/main/utils/menuUtil.ts | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ui/src/main/server.ts b/ui/src/main/server.ts index 893b182..6f013a7 100644 --- a/ui/src/main/server.ts +++ b/ui/src/main/server.ts @@ -2,12 +2,12 @@ import type { ChildProcess } from 'child_process'; import { exec } from 'child_process'; import { app, dialog } from 'electron'; import fs from 'fs-extra'; +import { toNumber } from 'lodash'; import * as net from 'net'; import path from 'path'; import portfinder from 'portfinder'; import { Platforms } from './enums'; import { getLogPath } from './utils/loggerUtil'; -import { toNumber } from 'lodash'; export let serverProcess: ChildProcess; export let port: number; diff --git a/ui/src/main/utils/menuUtil.ts b/ui/src/main/utils/menuUtil.ts index bec7e5d..ecb9ff3 100644 --- a/ui/src/main/utils/menuUtil.ts +++ b/ui/src/main/utils/menuUtil.ts @@ -30,6 +30,10 @@ export function initWindowMenu(mainWindow: BrowserWindow) { }, ] : []), + { + label: '编辑', + role: 'editMenu', + }, { label: '集群', submenu: [ @@ -78,7 +82,7 @@ export function initWindowMenu(mainWindow: BrowserWindow) { { label: '更多帮助', click: async () => { - await shell.openExternal('https://electronjs.org'); + await shell.openExternal('https://github.com/gotomicro/k8z/issues'); }, }, ],