feat: 本次更新项目为:

语法格式化
This commit is contained in:
2025-07-29 11:35:04 +08:00
parent 232d4834be
commit 6d768f3a97
62 changed files with 6718 additions and 6662 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

@@ -44,10 +44,10 @@ instance.interceptors.response.use(
}
return Promise.reject(msg || "接口错误");
},
(err) => {
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;