VUE3 响应式数组赋值后丢失响应 稀土扛把子 2023-07-27 187 阅读1分钟 const data = reactive({ tableOption: JSON.parse(JSON.stringify(tabOption)), data.tableOption = ref([]);//界面无变化 数据已经变了 解决办法 data.tableOption.splice(0, data.tableOption.length, ...tabOption);