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

}

Logo

前往低代码交流专区

更多推荐