js文件
import store from "@/store";
let mm =store.state.patient.OperateModel;
store/patient.js
const state = {
name: 'hahhaxx',
LZBaseSession: [],
OperateModel:'x',//当前操作,主要用于识别顶部导航样本入库和统计查询
}
const mutations = {
SET_NAME: (state, name) => {
state.name = name
},
SET_LZBase: (state, LZBaseSession) => {
state.LZBaseSession = LZBaseSession;
},
SET_OperateModel: (state, OperateModel) => {
state.OperateModel = OperateModel;
}
}
export default {
namespaced: true,
state,
mutations
}
版权声明:本文为weixin_34521244原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。