feat: 本次提交更新内容如下
同步
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user