From 7339b8a9ccf09e6262cb71ac6c9b724cdfa6fe22 Mon Sep 17 00:00:00 2001 From: zhangwei <1504152376@qq.com> Date: 星期五, 15 八月 2025 16:43:32 +0800 Subject: [PATCH] 'pdf预览'’’ --- src/api/upload/index.ts | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/api/upload/index.ts b/src/api/upload/index.ts index 727dbe8..0855e0e 100644 --- a/src/api/upload/index.ts +++ b/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) => { -- Gitblit v1.9.1