From f7bc297b405c3e2a04bb9f6acb7eaaa6e935e06e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=89=AF?= <841369634@qq.com> Date: Tue, 23 Apr 2024 16:35:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/gui/src/bridge/update/front.js | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/packages/gui/src/bridge/update/front.js b/packages/gui/src/bridge/update/front.js index 41e7bca..596fbba 100644 --- a/packages/gui/src/bridge/update/front.js +++ b/packages/gui/src/bridge/update/front.js @@ -61,19 +61,26 @@ function install (app, api) { updateParams.progress = value } + function openGithubUrl () { + api.ipc.openExternal('https://github.com/docmirror/dev-sidecar/releases') + } + function goManualUpdate (value) { updateParams.newVersion = false app.$confirm({ // title: '暂不支持自动升级', title: '暂不提供自动升级', cancelText: '取消', - okText: '确定', + okText: '打开', width: 420, content: h => { - function openGithubUrl () { - api.ipc.openExternal('https://github.com/docmirror/dev-sidecar/releases') - } - return