| | |
| | | }); |
| | | if (code == 200) { |
| | | pagingRef.value.complete(data); |
| | | pagingRef.value.endRefresh(); |
| | | } |
| | | }; |
| | | |
| | | const save = async () => { |
| | | const value = cardList.value.filter((item: { id?: number }) => item.id === undefined); |
| | | const value = cardList.value.filter((item: { id?: number }) => item.id === undefined || item.id === null); |
| | | |
| | | const { code } = await TwistApi.addStrandedWireDish(cardList.value); |
| | | const { code } = await TwistApi.addStrandedWireDish(value); |
| | | if (code == 200) { |
| | | toast.success("保存成功"); |
| | | cardList.value = []; |