location 有可能是一个‘’,''.split() 将输出[""],是个含有空字符串的数组,而[]是个什么都没有的数组,两者不同。
code:
change initialValue from :
initialValue:   location.split(',') || []
to:
initialValue: location === '' ? [] : location.split(',')
 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-21
  • 2022-12-23
  • 2021-07-03
  • 2021-12-16
猜你喜欢
  • 2021-12-01
  • 2022-12-23
  • 2021-12-27
  • 2021-10-24
  • 2021-04-08
  • 2021-12-05
  • 2022-12-23
相关资源
相似解决方案