素材库优化

This commit is contained in:
none 2023-03-06 10:14:04 +08:00
parent feda1feb95
commit a20c1c6090
7 changed files with 6 additions and 4 deletions

View File

@ -6,6 +6,7 @@ export function resourceList(
sortField: string,
sortAlgo: string,
name: string,
type: string,
categoryIds: string
) {
return client.get("/backend/v1/resource/index", {
@ -23,6 +24,7 @@ export function createResource(type: string) {
}
export function storeResource(
type: string,
categoryId: number,
name: string,
extension: string,

View File

@ -1,5 +1,5 @@
export * from "./footer";
export * from "./header";
export * from "./leftMenu";
export * from "./uploadImageButton";
export * from "./upload-image-button";
export * from ".//treeDepartment";

View File

@ -11,9 +11,9 @@ import {
} from "antd";
import { resource, resourceCategory } from "../../api";
import styles from "./index.module.less";
import { CreateResourceCategory } from "../createResourceCategory";
import { CreateResourceCategory } from "../create-resource-category";
import { CloseOutlined } from "@ant-design/icons";
import { UploadImageSub } from "./uploadImageSub";
import { UploadImageSub } from "./upload-image-sub";
interface CategoryItem {
id: number;
@ -72,7 +72,7 @@ export const UploadImageButton = (props: PropsInterface) => {
return;
}
resource
.resourceList(page, size, "", "", "", defaultCid + "")
.resourceList(page, size, "", "", "", "IMAGE", defaultCid + "")
.then((res: any) => {
setTotal(res.data.total);
setImageList(res.data.data);