使用简单深拷贝函数JSON.parse(JSON.stringify(config))代替浅拷贝assign