srhb18

Results 2 issues of srhb18

![image](https://user-images.githubusercontent.com/1941010/183914559-63a3bc3a-0e7a-4ac4-b5ee-5efda795dc7d.png) 当前的i18n插件的getLocale方法,开启i18n路由情况下, getDetectedLocaleFromPath(locales, defaultLocale) 是一定会返回值的,这也就导致后面的cookies.get方法永远不会执行,进而导致如下问题: - 如果上次访问的时候语言选择了英文,然后关闭页面,在打开中文path的页面(中文为默认语言),页面是不会跳转到英文路径下,因为这时候getLocale由于上述机制的设计,会执行从path取locale状态的逻辑,而永远不会考虑cookie的状态; - 但此时点击任何一个Link链接或者执行history.push的时候,内部逻辑却不是默认读取的path上的locale信息而是cookie上的,于是就会从中文页面突然跳转为英文页面; 建议: getDetectedLocaleFromPath方法得改进一下,如果通过path判断不到locale状态时,不应该返回defaultLocale,而应该返回undefined或false,这样就会去看下cookie,取cookie的语言,如果path上有语言标记,也应该在init的时候基于初始化的setCookie逻辑,把语言cookie更新成当前path对应的语言类型; - **ice.js Version**:2.6.4 - **plugin-i18n Version**:0.2.1 - **build.json Configuration**: - **Node Version**: - **Platform**:

When thers is only 2 options, this brancn condition will break first option's borderRadius props, this new condition will fix this, but made no seprator between two options. Consider in...