chore: update tauri-plugin-mihomo deps

This commit is contained in:
oomeow
2025-11-13 20:24:24 +08:00
parent 0e2e919a58
commit 18b3db46b0
6 changed files with 16 additions and 26 deletions
@@ -3,7 +3,7 @@ import { useLockFn } from "ahooks";
import dayjs from "dayjs";
import { useImperativeHandle, useState, type Ref } from "react";
import { useTranslation } from "react-i18next";
import { closeConnections } from "tauri-plugin-mihomo-api";
import { closeConnection } from "tauri-plugin-mihomo-api";
import parseTraffic from "@/utils/parse-traffic";
@@ -123,7 +123,7 @@ const InnerConnectionDetail = ({ data, closed, onClose }: InnerProps) => {
},
];
const onDelete = useLockFn(async () => closeConnections(data.id));
const onDelete = useLockFn(async () => closeConnection(data.id));
return (
<Box sx={{ userSelect: "text", color: theme.palette.text.secondary }}>
@@ -10,7 +10,7 @@ import {
import { useLockFn } from "ahooks";
import dayjs from "dayjs";
import { useTranslation } from "react-i18next";
import { closeConnections } from "tauri-plugin-mihomo-api";
import { closeConnection } from "tauri-plugin-mihomo-api";
import parseTraffic from "@/utils/parse-traffic";
@@ -37,7 +37,7 @@ export const ConnectionItem = (props: Props) => {
const { id, metadata, chains, start, curUpload, curDownload } = value;
const { t } = useTranslation();
const onDelete = useLockFn(async () => closeConnections(id));
const onDelete = useLockFn(async () => closeConnection(id));
const showTraffic = curUpload! >= 100 || curDownload! >= 100;
return (