1234567891011121314151617181920212223242526272829303132333435363738394041 |
- // initial state
- // shape: [{ id, quantity }]
- const state = () => ({
- weather: {
- weather: "阴", // 气象法
- temperature: "11", // 温度
- windDirection: "北风", // 风向
- windSpeed: "3-4级", // 风速
- visibility: "20KM", //能见度
- humidity: "75.0%", // 湿度
- pressure: "994kPa", // 气压
- sunrise: "4:06", // 日出
- sunset: "18:50", // 日落}
- }
- })
- // getters
- const getters = {
- }
- // actions
- const actions = {
- }
- // mutations
- const mutations = {
- }
- export default {
- namespaced: true,
- state,
- getters,
- actions,
- mutations,
- modules: {
- }
- }
|