vue中两个变量赋值一样导致同步改变解决办法

可以先把对象转为字符串,再转回来

JSON.parse(JSON.stringify(res.data));

posted on 2022-02-17 08:39  Just丶随心  阅读(415)  评论(0编辑  收藏  举报

导航