Commit e210d04b authored by 田翔's avatar 田翔

fix: 下拉框问题

parent 33628a00
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "2.7.0", "version": "2.7.1",
"description": "2.7.0: 样式组件修改", "description": "2.7.1: 下拉框问题",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
......
...@@ -96,12 +96,6 @@ const ComboBox = (props) => { ...@@ -96,12 +96,6 @@ const ComboBox = (props) => {
} }
} }
if (sourceType === '站点') { if (sourceType === '站点') {
getStation()
}
}
}
const getStation = async () => {
const { code, data, msg } = await getStationIDListByUserID(userID, !isMySite) const { code, data, msg } = await getStationIDListByUserID(userID, !isMySite)
if (code === 0) { if (code === 0) {
if (Array.isArray(data)) { if (Array.isArray(data)) {
...@@ -113,12 +107,8 @@ const ComboBox = (props) => { ...@@ -113,12 +107,8 @@ const ComboBox = (props) => {
message.error(msg) message.error(msg)
} }
} }
useEffect(async () => {
if (sourceType === '站点' && isStoreID) {
getStation()
} }
}, []) }
return ( return (
<Select <Select
......
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