xiaoxian521 %!s(int64=2) %!d(string=hai) anos
pai
achega
ee5d82c021
Modificáronse 2 ficheiros con 2 adicións e 5 borrados
  1. 0 3
      src/components/ReIcon/src/hooks.ts
  2. 2 2
      src/utils/http/index.ts

+ 0 - 3
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() {

+ 2 - 2
src/utils/http/index.ts

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