黄中银 2 هفته پیش
والد
کامیت
02534dc0eb
1فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  1. 5 0
      src/views/ClaudeCodeView.vue

+ 5 - 0
src/views/ClaudeCodeView.vue

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