weieryang 1 gadu atpakaļ
vecāks
revīzija
a64cf0f628

+ 3 - 1
src/views/admin/activity.vue

235
       const res: any = await request.delete('/Activity/activity/' + id);
235
       const res: any = await request.delete('/Activity/activity/' + id);
236
 
236
 
237
       await alterRes(res);
237
       await alterRes(res);
238
-    });
238
+    }).catch(() => {
239
+      console.log('取消');
240
+    })
239
 }
241
 }
240
 
242
 
241
 let tableData = ref([]);
243
 let tableData = ref([]);

+ 3 - 1
src/views/admin/article.vue

276
       const res: any = await request.delete('/GwHome/gwhome/' + id);
276
       const res: any = await request.delete('/GwHome/gwhome/' + id);
277
 
277
 
278
       await alterRes(res);
278
       await alterRes(res);
279
-    });
279
+    }).catch(() => {
280
+      console.log('取消');
281
+    })
280
 }
282
 }
281
 
283
 
282
 let tableData = ref([]);
284
 let tableData = ref([]);

+ 3 - 1
src/views/admin/artist.vue

223
         const res: any = await request.delete('/Artist/artist/' + id);
223
         const res: any = await request.delete('/Artist/artist/' + id);
224
   
224
   
225
         await alterRes(res);
225
         await alterRes(res);
226
-      });
226
+      }).catch(() => {
227
+      console.log('取消');
228
+    })
227
   }
229
   }
228
   
230
   
229
   let tableData = ref([]);
231
   let tableData = ref([]);

+ 6 - 5
src/views/admin/product.vue

162
   name: '',
162
   name: '',
163
   nameContent: '',
163
   nameContent: '',
164
   nameFile: [],
164
   nameFile: [],
165
-  type: '',
166
-  typeContent: '',
167
-  typeFile: [],
168
 })
165
 })
169
 let typeRuleForm = reactive<any>({
166
 let typeRuleForm = reactive<any>({
170
   id: 0,
167
   id: 0,
427
       const res: any = await request.delete('/Type/type/' + id);
424
       const res: any = await request.delete('/Type/type/' + id);
428
 
425
 
429
       await alterRes(res);
426
       await alterRes(res);
430
-    });
427
+    }).catch(() => {
428
+      console.log('取消');
429
+    })
431
 }
430
 }
432
 
431
 
433
 
432
 
446
       const res: any = await request.delete('/Product/product/' + id);
445
       const res: any = await request.delete('/Product/product/' + id);
447
 
446
 
448
       await alterRes(res);
447
       await alterRes(res);
449
-    });
448
+    }).catch(() => {
449
+      console.log('取消');
450
+    })
450
 }
451
 }
451
 
452
 
452
 let tableData = ref([]);
453
 let tableData = ref([]);