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

eslint规则校验
This commit is contained in:
2025-07-28 17:18:03 +08:00
parent a9306bb8ba
commit e1ed0e5dff
61 changed files with 275 additions and 225 deletions

View File

@@ -7,7 +7,7 @@ import request from "./request";
*/
export async function uploadFile(
file: File,
uploadUrl: string = "/v1/attachment/upload"
uploadUrl: string = "/v1/attachment/upload",
): Promise<string> {
try {
// 创建 FormData 对象用于文件上传

View File

@@ -19,7 +19,7 @@ export const fetchDeviceRelatedAccounts = (id: string | number) =>
export const fetchDeviceHandleLogs = (
id: string | number,
page = 1,
limit = 10
limit = 10,
) => request(`/v1/devices/${id}/handle-logs`, { page, limit }, "GET");
// 更新设备任务配置

View File

@@ -47,7 +47,7 @@ instance.interceptors.response.use(
err => {
Toast.show({ content: err.message || "网络异常", position: "top" });
return Promise.reject(err);
}
},
);
export function request(
@@ -55,7 +55,7 @@ export function request(
data?: any,
method: Method = "GET",
config?: AxiosRequestConfig,
debounceGap?: number
debounceGap?: number,
): Promise<any> {
const gap =
typeof debounceGap === "number" ? debounceGap : DEFAULT_DEBOUNCE_GAP;