摘要: 需求:将接口请求到的列表数据赋值给响应数据arr const arr = reactive([]); const load = () => { const res = [2, 3, 4, 5]; //假设请求接口返回的数据 // 方法1 失败,直接赋值丢失了响应性 // arr = res; // 阅读全文
posted @ 2022-03-01 14:41 鹿lu 阅读(4662) 评论(0) 推荐(0) 编辑