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)" >