mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-19 02:13:50 +08:00
fix: save country code (#324)
Signed-off-by: “seriouszyx” <seriouszyx@foxmail.com>
This commit is contained in:
@ -47,7 +47,7 @@ class SelectRegionBox extends React.Component {
|
||||
>
|
||||
{
|
||||
Setting.CountryRegionData.map((item, index) => (
|
||||
<Option key={index} value={item.name} label={item.name} >
|
||||
<Option key={index} value={item.code} label={item.code} >
|
||||
<img src={`${Setting.StaticBaseUrl}/flag-icons/${item.code}.svg`} alt={item.name} height={20} style={{marginRight: 10}}/>
|
||||
{`${item.name} (${item.code})`}
|
||||
</Option>
|
||||
|
Reference in New Issue
Block a user