diff --git a/admin/src/components/material/file.vue b/admin/src/components/material/file.vue
index a9f05003347ab54397926ba69eaa2cc87704264f..fef7d719bc2995303efc851d442969945c207ea5 100644
--- a/admin/src/components/material/file.vue
+++ b/admin/src/components/material/file.vue
@@ -3,6 +3,11 @@
+
{
+ await fileCateAdd({
+ type,
+ name: value,
+ pid: pid
+ })
+ getCateLists()
+ }
+
// 编辑分组
const handleEditCate = async (value: string, id: number) => {
await fileCateEdit({
@@ -82,6 +91,7 @@ export function useCate(type: number) {
cateId,
cateLists,
handleAddCate,
+ handleAddChildCate,
handleEditCate,
handleDeleteCate,
getCateLists,
@@ -105,7 +115,8 @@ export function useFile(
const fileParams = reactive({
name: '',
type: type,
- cid: cateId
+ cid: cateId,
+ source: ''
})
const { pager, getLists, resetPage } = usePaging({
fetchFun: fileList,
diff --git a/admin/src/components/material/index.vue b/admin/src/components/material/index.vue
index a5149eb208d92f8bb12a134942d9c07c0975e61b..b92b76afd22323ffcd41527aea81e981f0090407 100644
--- a/admin/src/components/material/index.vue
+++ b/admin/src/components/material/index.vue
@@ -42,6 +42,20 @@
+
+
+
+ 添加分组
+
+
+
删除分组
@@ -91,6 +105,16 @@
>
本地上传
+
+ 本地上传
+
+