dva-model-extend icon indicating copy to clipboard operation
dva-model-extend copied to clipboard

属性只能进行浅拷贝 深层嵌套时丢失?

Open pkaq opened this issue 7 years ago • 4 comments

如题

pkaq avatar May 24 '18 23:05 pkaq

dva model 本来设计就没有嵌套的吧,你的场景是?

benjycui avatar Jun 29 '18 08:06 benjycui

{
 data:{
 a:{},
 b:{},
 child:{
    pagination:{}
    list:[]
  }
 }
}

pkaq avatar Jun 30 '18 05:06 pkaq

@pkaq 来个 PR,model.data 改为深拷贝。

benjycui avatar Jul 02 '18 02:07 benjycui

@pkaq 来个 PR,model.data 改为深拷贝。

https://github.com/dvajs/dva-model-extend/pull/16

guanyuan avatar Jul 12 '21 03:07 guanyuan