diff --git a/apps/web-antd/public/tinymce/tinymce.d.ts b/apps/web-antd/public/tinymce/tinymce.d.ts index 20f888b56..a87b1629a 100644 --- a/apps/web-antd/public/tinymce/tinymce.d.ts +++ b/apps/web-antd/public/tinymce/tinymce.d.ts @@ -2537,12 +2537,12 @@ interface EditorSelection { normalize: () => Range; selectorChanged: (selector: string, callback: (active: boolean, args: { node: Node; - selector: String; + selector: string; parents: Node[]; }) => void) => EditorSelection; selectorChangedWithUnbind: (selector: string, callback: (active: boolean, args: { node: Node; - selector: String; + selector: string; parents: Node[]; }) => void) => { unbind: () => void; @@ -3217,9 +3217,9 @@ interface Tools { (arr: ArrayLike | null | undefined, cb: ArrayCallback): R[]; (obj: Record | null | undefined, cb: ObjCallback): R[]; }; - extend: (obj: Object, ext: Object, ...objs: Object[]) => any; + extend: (obj: object, ext: object, ...objs: object[]) => any; walk: >(obj: T, f: WalkCallback, n?: keyof T, scope?: any) => void; - resolve: (path: string, o?: Object) => any; + resolve: (path: string, o?: object) => any; explode: (s: string | string[], d?: string | RegExp) => string[]; _addCacheSuffix: (url: string) => string; } diff --git a/apps/web-antd/src/api/iot/device/modbus/point/index.ts b/apps/web-antd/src/api/iot/device/modbus/point/index.ts index fa5c6767d..11b440fae 100644 --- a/apps/web-antd/src/api/iot/device/modbus/point/index.ts +++ b/apps/web-antd/src/api/iot/device/modbus/point/index.ts @@ -37,16 +37,12 @@ export function getModbusPoint(id: number) { } /** 创建 Modbus 点位配置 */ -export function createModbusPoint( - data: IotDeviceModbusPointApi.ModbusPoint, -) { +export function createModbusPoint(data: IotDeviceModbusPointApi.ModbusPoint) { return requestClient.post('/iot/device-modbus-point/create', data); } /** 更新 Modbus 点位配置 */ -export function updateModbusPoint( - data: IotDeviceModbusPointApi.ModbusPoint, -) { +export function updateModbusPoint(data: IotDeviceModbusPointApi.ModbusPoint) { return requestClient.put('/iot/device-modbus-point/update', data); } diff --git a/apps/web-antd/src/api/request.ts b/apps/web-antd/src/api/request.ts index 2568def87..15539ab93 100644 --- a/apps/web-antd/src/api/request.ts +++ b/apps/web-antd/src/api/request.ts @@ -119,7 +119,9 @@ function createRequestClient(baseURL: string, options?: RequestClientOptions) { response.data = apiEncrypt.decryptResponse(response.data); } catch (error) { console.error('响应数据解密失败:', error); - throw new Error(`响应数据解密失败: ${(error as Error).message}`); + throw new Error(`响应数据解密失败: ${(error as Error).message}`, { + cause: error, + }); } } return response; diff --git a/apps/web-antd/src/components/description/use-description.ts b/apps/web-antd/src/components/description/use-description.ts index fd24920f0..e3b676af2 100644 --- a/apps/web-antd/src/components/description/use-description.ts +++ b/apps/web-antd/src/components/description/use-description.ts @@ -21,7 +21,7 @@ export function useDescription(options?: Partial) { inheritAttrs: false, setup(_props, { attrs, slots }) { return () => { - // @ts-ignore - 避免类型实例化过深 + // @ts-expect-error - 避免类型实例化过深 return h(Description, { ...propsState, ...attrs }, slots); }; }, diff --git a/apps/web-antd/src/components/form-create/components/area-select.vue b/apps/web-antd/src/components/form-create/components/area-select.vue index 9a025ed3e..9fa8d5b05 100644 --- a/apps/web-antd/src/components/form-create/components/area-select.vue +++ b/apps/web-antd/src/components/form-create/components/area-select.vue @@ -2,10 +2,11 @@