diff --git a/web-react/src/util/global/index.js b/web-react/src/util/global/index.js index 374ca42..2584c5e 100644 --- a/web-react/src/util/global/index.js +++ b/web-react/src/util/global/index.js @@ -38,6 +38,11 @@ export const RSA_PUBLIC_KEY = '-----BEGIN PUBLIC KEY-----MIGfMA0GCSqGSIb3DQEBAQU */ export const CITY = '黄石市' +/** + * + */ +export const AMAP_WEBAPI_KEY = 'ca01719fe09757131a1249c273619a17' + /** * 响应式响应宽度 */ diff --git a/web-react/src/views/main/_layout/header/index.jsx b/web-react/src/views/main/_layout/header/index.jsx index 0cdf6c8..b3f6dea 100644 --- a/web-react/src/views/main/_layout/header/index.jsx +++ b/web-react/src/views/main/_layout/header/index.jsx @@ -6,6 +6,7 @@ import { api } from 'common/api' import Logo from '../logo' import Search from './search' +import Weather from './weather' import Notice from './notice' import User from './user' @@ -53,6 +54,7 @@ export default class index extends Component {
+ + + + {temperature}℃ + {weather} + + + ) + } +}