支持缩略图加载,故事项新建调整
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user