|
@@ -1648,9 +1648,13 @@ const saveDownload = async () => {
|
|
|
|
|
|
//SVG线性图元
|
|
|
if ([...prePayList.svgPens].length) {
|
|
|
- let purchased = data.purchasedList?.filter(
|
|
|
- (_item) => _item.type === 'SVG线性图元'
|
|
|
- );
|
|
|
+ // let purchased = data.purchasedList?.filter(
|
|
|
+ // (_item) => _item.type === 'SVG线性图元'
|
|
|
+ // );
|
|
|
+ const res: any = await axios.post('/api/paid/2d/component?pageSize=1000', {
|
|
|
+ type: 'SVG线性图元',
|
|
|
+ });
|
|
|
+ let purchased = res.list;
|
|
|
let count = data.goods.find((item) => item.type === 'SVG线性图元').count;
|
|
|
if(purchased.length === count){
|
|
|
// if (purchased.length === 1 && !purchased[0].name) {
|