fix(): 修改实时雨情的接口
parent
07d05d20ed
commit
6a1443e73a
|
|
@ -28,7 +28,7 @@ const WaterRainSection = () => {
|
|||
const getRainList = async () => {
|
||||
setLoading(true);
|
||||
try {
|
||||
const result = await httpget(apiurl.sy.sssyq.reservoir);
|
||||
const result = await httpget(apiurl.sy.sssyq.rain);
|
||||
if (result.code === 200) {
|
||||
setDataList(result.data);
|
||||
}
|
||||
|
|
@ -42,7 +42,7 @@ const WaterRainSection = () => {
|
|||
const getReservoirList = async () => {
|
||||
setLoading(true);
|
||||
try {
|
||||
const result = await httpget(apiurl.sy.sssyq.rain);
|
||||
const result = await httpget(apiurl.sy.sssyq.reservoir);
|
||||
if (result.code === 200) {
|
||||
setDataList(result.data);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue