import { createSelector } from 'reselect';
import { INITIAL_STATE } from './reducer';
import _ from "lodash";
import { has } from 'lodash';
export const selectWeather = (state) => state.data || {};
console.log("state", selectWeather)
export const getCityInfo = () =>
createSelector(
selectWeather,
state => has(state, 'data') ? state.data : '',
); ',);
这是来自selector.js的函数,试图从商店获取信息,但无法获取信息。我想我无法达到国家本身。