zhangwei
9 天以前 03c275439949875a857538df89a41696642c42b3
src/api/upload/index.ts
@@ -6,11 +6,14 @@
import { http } from "@/utils/http";
import { baseUrlApi, uploadUrlApi } from "../util";
import type { Result } from "../types";
import type { Result, getUploadTokenResult } from "../types";
// 获取上传Token
export const getUploadToken = () => {
  return http.request<Result>("get", baseUrlApi("/api/upFile/token"));
  return http.request<getUploadTokenResult>(
    "get",
    baseUrlApi("/api/upFile/token")
  );
};
export const uploadFileAli11 = (data, key) => {