上面是效果图
// 续航里程 const enduranceMileage = ref < string > ('') // 轴距 const wheelBase = ref < string > ('')
原因是因为共同用的一个地址,所以会导致发生变化
解决方法 :使用JSON序列化一下,进行深拷贝就可以了
monthPriceData.value = JSON.parse(JSON.stringify(ProductData.value.product_price))
stagesData.value = JSON.parse(JSON.stringify(ProductData.value.product_price))