Explorar el Código

Merge branch 'master' of http://192.168.1.222:3000/weieryang/bjbyrd-website

miaofuhao hace 1 año
padre
commit
efda4e1411

+ 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 - 2
src/views/admin/product.vue

424
       const res: any = await request.delete('/Type/type/' + id);
424
       const res: any = await request.delete('/Type/type/' + id);
425
 
425
 
426
       await alterRes(res);
426
       await alterRes(res);
427
-    });
427
+    }).catch(() => {
428
+      console.log('取消');
429
+    })
428
 }
430
 }
429
 
431
 
430
 
432
 
443
       const res: any = await request.delete('/Product/product/' + id);
445
       const res: any = await request.delete('/Product/product/' + id);
444
 
446
 
445
       await alterRes(res);
447
       await alterRes(res);
446
-    });
448
+    }).catch(() => {
449
+      console.log('取消');
450
+    })
447
 }
451
 }
448
 
452
 
449
 let tableData = ref([]);
453
 let tableData = ref([]);