File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
src/cool/modules/upload/components/space Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ export default defineComponent({
81
81
82
82
// 刷新分类
83
83
function refresh() {
84
- return service .upload .type .list ().then ((res : any ) => {
84
+ return service .space .type .list ().then ((res : any ) => {
85
85
res .unshift ({
86
86
name: " 全部文件" ,
87
87
id: null
@@ -124,9 +124,9 @@ export default defineComponent({
124
124
let next = null ;
125
125
126
126
if (! item .id ) {
127
- next = service .upload .type .add (data );
127
+ next = service .space .type .add (data );
128
128
} else {
129
- next = service .upload .type .update ({
129
+ next = service .space .type .update ({
130
130
... data ,
131
131
id: item .id
132
132
});
@@ -164,7 +164,7 @@ export default defineComponent({
164
164
list: [
165
165
{
166
166
label: " 刷新" ,
167
- " suffix-icon" : " el-icon-edit " ,
167
+ " suffix-icon" : " el-icon-refresh " ,
168
168
callback : (_ : any , done : Function ) => {
169
169
refresh ();
170
170
done ();
@@ -190,7 +190,7 @@ export default defineComponent({
190
190
}
191
191
)
192
192
.then (() => {
193
- service .upload .type
193
+ service .space .type
194
194
.delete ({
195
195
ids: [id ]
196
196
})
Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ export default defineComponent({
266
266
if (item ) {
267
267
item .url = res .data ;
268
268
269
- service .upload .info
269
+ service .space .info
270
270
.add ({
271
271
url: res .data ,
272
272
type: item .type ,
@@ -321,7 +321,7 @@ export default defineComponent({
321
321
// 加载中
322
322
loading .value = true ;
323
323
324
- await service .upload .info
324
+ await service .space .info
325
325
.page ({
326
326
... pagination ,
327
327
... params ,
@@ -386,7 +386,7 @@ export default defineComponent({
386
386
});
387
387
388
388
// 删除请求
389
- service .upload .info
389
+ service .space .info
390
390
.delete ({
391
391
ids
392
392
})
You can’t perform that action at this time.
0 commit comments