1
Surpriseplus
2022-09-16 a7e5110ef3f5fe3c9205f7d1a526b9fbbb55d826
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
 
import Vue from "vue"
import Vuex from "vuex"
 
Vue.use(Vuex);
 
export default new Vuex.Store({
    state:{
        Pid: "",
        waterClock:"",
        monitorData:{},
        childState:false,
    },
    mutations:{
        setchildState(state,msg){
            state.childState = msg;
        },
        getmonitorData(state,msg){
            state.monitorData = msg;
        },
        // 保存当前菜单栏的路径
        savePath(state,Pid){
            state.Pid = Pid;
        },
       savewaterClock(state,waterClock){
         state.waterClock = waterClock;
       },
    }
})