From ee5d82c021e11e0948dd93d409f400b052a4ecc1 Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Wed, 30 Nov 2022 12:51:15 +0800 Subject: [PATCH] types: fix --- src/components/ReIcon/src/hooks.ts | 3 --- src/utils/http/index.ts | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/components/ReIcon/src/hooks.ts b/src/components/ReIcon/src/hooks.ts index 51f4f5045..4f430a894 100644 --- a/src/components/ReIcon/src/hooks.ts +++ b/src/components/ReIcon/src/hooks.ts @@ -1,6 +1,5 @@ import { iconType } from "./types"; import { h, defineComponent, Component } from "vue"; -import { addIcon } from "@iconify/vue/dist/offline"; import { IconifyIconOnline, IconifyIconOffline, FontIcon } from "../index"; /** @@ -36,8 +35,6 @@ export function useRenderIcon(icon: any, attrs?: iconType): Component { // svg return icon; } else if (typeof icon === "object") { - // iconify 本地图标 - addIcon(icon, icon); return defineComponent({ name: "OfflineIcon", render() { diff --git a/src/utils/http/index.ts b/src/utils/http/index.ts index 2489023fc..27e44e46a 100644 --- a/src/utils/http/index.ts +++ b/src/utils/http/index.ts @@ -175,7 +175,7 @@ class PureHttp { /** 单独抽离的post工具函数 */ public post( url: string, - params?: T, + params?: AxiosRequestConfig, config?: PureHttpRequestConfig ): Promise

{ return this.request

("post", url, params, config); @@ -184,7 +184,7 @@ class PureHttp { /** 单独抽离的get工具函数 */ public get( url: string, - params?: T, + params?: AxiosRequestConfig, config?: PureHttpRequestConfig ): Promise

{ return this.request

("get", url, params, config);