diff --git a/src/cool/modules/upload/components/space/category.vue b/src/cool/modules/upload/components/space/category.vue index 1478acc..801d02a 100644 --- a/src/cool/modules/upload/components/space/category.vue +++ b/src/cool/modules/upload/components/space/category.vue @@ -81,7 +81,7 @@ export default defineComponent({ // 刷新分类 function refresh() { - return service.upload.type.list().then((res: any) => { + return service.space.type.list().then((res: any) => { res.unshift({ name: "全部文件", id: null @@ -124,9 +124,9 @@ export default defineComponent({ let next = null; if (!item.id) { - next = service.upload.type.add(data); + next = service.space.type.add(data); } else { - next = service.upload.type.update({ + next = service.space.type.update({ ...data, id: item.id }); @@ -164,7 +164,7 @@ export default defineComponent({ list: [ { label: "刷新", - "suffix-icon": "el-icon-edit", + "suffix-icon": "el-icon-refresh", callback: (_: any, done: Function) => { refresh(); done(); @@ -190,7 +190,7 @@ export default defineComponent({ } ) .then(() => { - service.upload.type + service.space.type .delete({ ids: [id] }) diff --git a/src/cool/modules/upload/components/space/index.vue b/src/cool/modules/upload/components/space/index.vue index b080e25..5ac8beb 100644 --- a/src/cool/modules/upload/components/space/index.vue +++ b/src/cool/modules/upload/components/space/index.vue @@ -266,7 +266,7 @@ export default defineComponent({ if (item) { item.url = res.data; - service.upload.info + service.space.info .add({ url: res.data, type: item.type, @@ -321,7 +321,7 @@ export default defineComponent({ // 加载中 loading.value = true; - await service.upload.info + await service.space.info .page({ ...pagination, ...params, @@ -386,7 +386,7 @@ export default defineComponent({ }); // 删除请求 - service.upload.info + service.space.info .delete({ ids })