|
@ -543,7 +543,7 @@ const Index = () => { |
|
|
{ |
|
|
{ |
|
|
isPatrol || isAnomaly ? |
|
|
isPatrol || isAnomaly ? |
|
|
<InputPicker |
|
|
<InputPicker |
|
|
key={sourceRoadSel} // 添加key保证selector更新重新渲染 |
|
|
key={Math.random() || sourceRoadSel} // 添加key保证selector更新重新渲染 |
|
|
title='所在道路:' |
|
|
title='所在道路:' |
|
|
placeholder='请选择或输入您所在的道路' |
|
|
placeholder='请选择或输入您所在的道路' |
|
|
value={road} |
|
|
value={road} |
|
@ -555,7 +555,7 @@ const Index = () => { |
|
|
{ |
|
|
{ |
|
|
isPatrol || isAnomaly ? |
|
|
isPatrol || isAnomaly ? |
|
|
<InputPickers |
|
|
<InputPickers |
|
|
key={codeRoadSel} // 添加key保证selector更新重新渲染 |
|
|
key={Math.random() || codeRoadSel} // 添加key保证selector更新重新渲染 |
|
|
title='线路编码:' |
|
|
title='线路编码:' |
|
|
placeholder='请选择或输入您所在的道路' |
|
|
placeholder='请选择或输入您所在的道路' |
|
|
value={codeRoad} |
|
|
value={codeRoad} |
|
|