运维服务中台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

20 lines
452 B

'use strict';
import auth from './auth';
import { ApiTable, basicAction } from '$utils'
export function getWeatherRealtime () {
return dispatch => basicAction({
type: 'get',
dispatch: dispatch,
actionType: 'GET_WEATHER_REALTIME',
url: `${ApiTable.weatherRealtime}`,
msg: { error: '获取实时天气失败' },
reducer: { name: 'weatherRealtime' }
});
}
export default {
...auth,
getWeatherRealtime,
};