From bf78d8db6a4ca60d059f5e034bae4cf68c04dec6 Mon Sep 17 00:00:00 2001 From: wanglin2 <1013335014@qq.com> Date: Wed, 5 Mar 2025 21:46:16 +0800 Subject: [PATCH] update --- web/src/electron/otherHandle.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/src/electron/otherHandle.js b/web/src/electron/otherHandle.js index f8122bd9..b682492f 100644 --- a/web/src/electron/otherHandle.js +++ b/web/src/electron/otherHandle.js @@ -15,7 +15,10 @@ export const bindOtherHandleEvent = () => { // 使用默认浏览器打开指定url ipcMain.on('openUrl', (event, url) => { - shell.openPath(url) + const error = shell.openPath(url) + if (error) { + shell.openExternal(url) + } }) // 保存客户端配置