weather.js 653 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // initial state
  2. // shape: [{ id, quantity }]
  3. const state = () => ({
  4. weather: {
  5. weather: "阴", // 气象法
  6. temperature: "11", // 温度
  7. windDirection: "北风", // 风向
  8. windSpeed: "3-4级", // 风速
  9. visibility: "20KM", //能见度
  10. humidity: "75.0%", // 湿度
  11. pressure: "994kPa", // 气压
  12. sunrise: "4:06", // 日出
  13. sunset: "18:50", // 日落}
  14. }
  15. })
  16. // getters
  17. const getters = {
  18. }
  19. // actions
  20. const actions = {
  21. }
  22. // mutations
  23. const mutations = {
  24. }
  25. export default {
  26. namespaced: true,
  27. state,
  28. getters,
  29. actions,
  30. mutations,
  31. modules: {
  32. }
  33. }