Commit 48c08342 authored by 田翔's avatar 田翔

fix: 将站点id转化为字符串

parent c58ce610
{
"name": "panda-xform",
"version": "4.6.3",
"description": "4.6.3 地址坐标形态优化",
"version": "4.6.4",
"description": "4.6.4 将站点id转化为字符串",
"keywords": [
"panda-xform"
],
......
......@@ -82,7 +82,7 @@ const ComboBox = (props) => {
const { code, data, msg } = await getStationIDListByUserID(userID, !isMySite)
if (code === 0) {
if (Array.isArray(data)) {
setSite(data)
setSite(data.map(v => ({ stationID: v.stationID + '', stationName: v.stationName })))
if (!value && !presetValue) {
onChange(data[0][isStoreID ? 'stationID' : 'stationName'])
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment