From 41fc488225aee2f0dfbab6fb320664a45a45d13f Mon Sep 17 00:00:00 2001 From: cysamurai Date: Wed, 13 May 2026 11:54:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=89=93=E5=8C=85=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- call-client/src-tauri/src/commands/update.rs | 2 ++ call-client/src/views/MainView.vue | 19 +++++++++++++++---- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/call-client/src-tauri/src/commands/update.rs b/call-client/src-tauri/src/commands/update.rs index 3398b98..7185f46 100644 --- a/call-client/src-tauri/src/commands/update.rs +++ b/call-client/src-tauri/src/commands/update.rs @@ -2,6 +2,8 @@ use serde::Serialize; #[cfg(target_os = "linux")] use std::process::Command; use tauri::AppHandle; +#[cfg(target_os = "linux")] +use tauri::Manager; use super::logger::app_log; diff --git a/call-client/src/views/MainView.vue b/call-client/src/views/MainView.vue index 543d4fb..eb53939 100644 --- a/call-client/src/views/MainView.vue +++ b/call-client/src/views/MainView.vue @@ -23,7 +23,11 @@ import { ElMessage } from "element-plus"; import { computed, onMounted, onUnmounted, ref, watch } from "vue"; import { api } from "../api"; import { getAllConfig } from "../host/config"; -import { confirmNative, showErrorNative, showErrorNativeWithLog } from "../host/dialog"; +import { + confirmNative, + showErrorNative, + showErrorNativeWithLog, +} from "../host/dialog"; import { emitTaxerTicketContext, listenMainAction } from "../host/events"; import { log } from "../host/logger"; import { getSession } from "../host/session"; @@ -565,7 +569,10 @@ async function callAction(): Promise { }); if (isActionSuccess(recallRes)) { updateLog(`已重呼:${getActionTicketNo(recallRes)},请勿重复点击!`); - await log("info", `重呼成功: ticketNo=${getActionTicketNo(recallRes)}`); + await log( + "info", + `重呼成功: ticketNo=${getActionTicketNo(recallRes)}`, + ); await emitTaxerTicketContext({ ticketNo: getActionTicketNo(recallRes), sfzhm: getActionSfzhm(recallRes), @@ -1049,12 +1056,16 @@ onUnmounted(() => { :data-action="btn.action" :disabled="!btn.enabled || isActionPending" :class="{ disabled: !btn.enabled || isActionPending }" - :style="{ color: !btn.enabled || isActionPending ? '#ccc' : textColor }" + :style="{ + color: !btn.enabled || isActionPending ? '#ccc' : textColor, + }" @click="handleButtonClick(btn)" >