支持缩略图加载,故事项新建调整

This commit is contained in:
jiangh277
2025-08-06 18:41:32 +08:00
parent 141e8d9818
commit 182a58d0db
11 changed files with 448 additions and 229 deletions

View File

@@ -1,12 +1,12 @@
import { fetchImage } from '@/pages/story/service';
import { useRequest } from '@umijs/max';
import { useEffect, useState } from 'react';
import {fetchImageLowRes} from "@/services/file/api";
const useFetchImageUrl = (imageInstanceId: string) => {
const [imageUrl, setImageUrl] = useState("error");
const { data: response, run, loading } = useRequest(
() => {
return fetchImage(imageInstanceId);
return fetchImageLowRes(imageInstanceId);
},
{
manual: true,