diff --git a/electron/api/github.ts b/electron/api/github.ts
index 3f6e525..7bfb799 100644
--- a/electron/api/github.ts
+++ b/electron/api/github.ts
@@ -1,4 +1,4 @@
-import {app, BrowserWindow, ipcMain, net, shell} from "electron";
+import electron, {app, BrowserWindow, ipcMain, net, shell} from "electron";
import {deleteVersionById, insertVersion} from "../storage/version";
const fs = require("fs");
@@ -197,4 +197,8 @@ export const initGitHubApi = () => {
ipcMain.on("github.open", () => {
shell.openExternal("https://github.com/luckjiawei/frpc-desktop");
})
+
+ electron.ipcMain.on("github.openReleases", () => {
+ electron.shell.openExternal("https://github.com/luckjiawei/frpc-desktop/releases");
+ });
};
diff --git a/src/layout/compoenets/LeftMenu.vue b/src/layout/compoenets/LeftMenu.vue
index 164cb4d..faf9090 100644
--- a/src/layout/compoenets/LeftMenu.vue
+++ b/src/layout/compoenets/LeftMenu.vue
@@ -32,6 +32,11 @@ const handleOpenGitHub = () => {
ipcRenderer.send("github.open")
}
+const handleOpenGitHubReleases = () => {
+ ipcRenderer.send("github.openReleases")
+}
+
+
onMounted(() => {
routes.value = router.options.routes[0].children?.filter(
f => !f.meta?.hidden
@@ -63,7 +68,7 @@ onMounted(() => {