mirror of
https://github.com/PlayEdu/backend
synced 2025-06-16 03:57:02 +08:00
素材库优化
This commit is contained in:
parent
feda1feb95
commit
a20c1c6090
@ -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,
|
||||
|
@ -1,5 +1,5 @@
|
||||
export * from "./footer";
|
||||
export * from "./header";
|
||||
export * from "./leftMenu";
|
||||
export * from "./uploadImageButton";
|
||||
export * from "./upload-image-button";
|
||||
export * from ".//treeDepartment";
|
@ -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);
|
Loading…
x
Reference in New Issue
Block a user