|
@@ -210,7 +210,7 @@ export default defineComponent({
|
|
|
]}>
|
|
|
{trainForms.trainList.length > 0 && (
|
|
|
<div class={styles.list}>
|
|
|
- {trainForms.trainList.map((item: any) => (
|
|
|
+ {trainForms.trainList.map((item: any, index: number) => (
|
|
|
<TrainType
|
|
|
item={item}
|
|
|
type="homework"
|
|
@@ -229,9 +229,9 @@ export default defineComponent({
|
|
|
}}
|
|
|
onDelete={() => {
|
|
|
// 删除
|
|
|
- const index = trainForms.trainList.findIndex(
|
|
|
- (c: any) => c.id === item.id
|
|
|
- );
|
|
|
+ // const index = trainForms.trainList.findIndex(
|
|
|
+ // (c: any) => c.id === item.id
|
|
|
+ // );
|
|
|
trainForms.trainList.splice(index, 1);
|
|
|
}}
|
|
|
/>
|