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