Closed Troynew closed 3 years ago
first:yarn create umi ,
second:select ant-design-pro and pro V4 and typescript and simple and antd4,
third: yarn && start project
fourth: chang the code in <SelectLang />
witch is setLocale( 'xxx',false);
fifth: change lang ,then dva data will be clear
找到原因了,因为有几份locale文件的内容是一样的,因为有的没有翻译,都用en-US复制过去,导致的
setLocale('ru-RU',true)不会清空dva,但是页面刷新,不是想要的效果