Răsfoiți Sursa

卸载日志

黄中银 2 săptămâni în urmă
părinte
comite
02534dc0eb
1 a modificat fișierele cu 5 adăugiri și 0 ștergeri
  1. 5 0
      src/views/ClaudeCodeView.vue

+ 5 - 0
src/views/ClaudeCodeView.vue

@@ -100,13 +100,18 @@ async function handleUninstall() {
   uninstallSuccess.value = false
   uninstallSuccess.value = false
   launchSuccess.value = false
   launchSuccess.value = false
 
 
+  // 记录开始卸载日志
+  installStore.addLog(t('claudeCode.uninstalling'))
+
   try {
   try {
     await window.electronAPI.uninstall('claudeCode')
     await window.electronAPI.uninstall('claudeCode')
     uninstallSuccess.value = true
     uninstallSuccess.value = true
+    installStore.addLog(t('claudeCode.uninstallSuccess'))
     // 卸载成功后刷新状态
     // 卸载成功后刷新状态
     await refreshStatus()
     await refreshStatus()
   } catch (error) {
   } catch (error) {
     uninstallError.value = (error as Error).message || t('claudeCode.uninstallFailed')
     uninstallError.value = (error as Error).message || t('claudeCode.uninstallFailed')
+    installStore.addLog(`${t('claudeCode.uninstallFailed')}: ${uninstallError.value}`, 'error')
   } finally {
   } finally {
     isUninstalling.value = false
     isUninstalling.value = false
   }
   }