From 497289c59e67798db065d1c484be2974724fecdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A2=81=E6=B6=9B?= Date: Fri, 17 Apr 2026 19:32:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E7=A7=BB=E9=99=A4API?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E5=88=87=E6=8D=A2=E6=97=B6=E7=9A=84=E6=9C=AA?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E6=9B=B4=E6=94=B9=E7=A1=AE=E8=AE=A4=E5=BC=B9?= =?UTF-8?q?=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/App.vue b/src/App.vue index 2bc5438..dff9685 100644 --- a/src/App.vue +++ b/src/App.vue @@ -491,19 +491,6 @@ const loadApiProfiles = async () => { // Switch API profile const switchApiProfile = async () => { - if (modified.value) { - const confirmed = await new Promise(resolve => { - showInputDialog.value = { show: true, title: '切换配置', placeholder: '当前有未保存的更改,切换配置将丢失这些更改,确定要切换吗?', callback: resolve, isConfirm: true } - }) - if (!confirmed) { - // 恢复到之前的值 - const result = await window.electronAPI.listApiProfiles() - if (result.success) { - currentApiProfile.value = result.currentProfile - } - return - } - } const result = await window.electronAPI.switchApiProfile(currentApiProfile.value) if (result.success) { const data = JSON.parse(JSON.stringify(result.data))