feat: 本次提交更新内容如下

同步
This commit is contained in:
笔记本里的永平
2025-07-22 13:57:24 +08:00
parent 7b30f98ab9
commit 34df010769
9 changed files with 67 additions and 24 deletions

View File

@@ -1,7 +1,7 @@
import React, { useState, useEffect } from "react";
import { SearchOutlined, ReloadOutlined } from "@ant-design/icons";
import { Input, Button, Checkbox, Popup, Toast } from "antd-mobile";
import request from "@/api/request";
import { getDeviceList } from "./api";
import style from "./module.scss";
// 设备选择项接口
@@ -37,15 +37,11 @@ export default function DeviceSelection({
const fetchDevices = async (keyword: string = "") => {
setLoading(true);
try {
const res = await request(
"/v1/device/list",
{
page: 1,
limit: 100,
keyword: keyword.trim() || undefined,
},
"GET"
);
const res = await getDeviceList({
page: 1,
limit: 100,
keyword: keyword.trim() || undefined,
});
if (res && Array.isArray(res.list)) {
setDevices(