diff --git a/nkebao/src/pages/devices/Devices.tsx b/nkebao/src/pages/devices/Devices.tsx
index 2692cad9..11e11dd6 100644
--- a/nkebao/src/pages/devices/Devices.tsx
+++ b/nkebao/src/pages/devices/Devices.tsx
@@ -1,6 +1,6 @@
import React, { useEffect, useRef, useState, useCallback } from "react";
import { NavBar, Popup, Tabs, Toast, SpinLoading, Dialog } from "antd-mobile";
-import { Button, Input, Pagination } from "antd";
+import { Button, Input, Pagination, Checkbox } from "antd";
import { useNavigate } from "react-router-dom";
import { AddOutline, DeleteOutline } from "antd-mobile-icons";
import {
@@ -191,11 +191,11 @@ const Devices: React.FC = () => {
right={
}
>
@@ -223,7 +223,7 @@ const Devices: React.FC = () => {
{/* 筛选和删除 */}
-
+
setStatus(k as any)}
@@ -233,15 +233,18 @@ const Devices: React.FC = () => {
-
}
- disabled={!selected.length}
- onClick={() => setDelVisible(true)}
- >
- 删除
-
+
+ }
+ disabled={selected.length === 0}
+ onClick={() => setDelVisible(true)}
+ >
+ 删除
+
+
>
@@ -279,8 +282,7 @@ const Devices: React.FC = () => {
}}
onClick={() => goDetail(device.id!)}
>
- {
e.stopPropagation();
@@ -297,13 +299,13 @@ const Devices: React.FC = () => {
{device.memo || "未命名设备"}
-
+
IMEI: {device.imei}
-
+
微信号: {device.wechatId || "未绑定"}
-
+
好友数: {device.totalFriend ?? "-"}
@@ -359,8 +361,7 @@ const Devices: React.FC = () => {
{addTab === "scan" && (
}
@@ -426,7 +427,7 @@ const Devices: React.FC = () => {
key: "confirm",
text: "确认删除",
danger: true,
- loading: delLoading,
+ // loading: delLoading, // antd-mobile Dialog.Action 不支持 loading 属性,去掉
},
{ key: "cancel", text: "取消" },
]}