Source/plt-web/plt-web-ui/src/store/index.js
@@ -21,12 +21,17 @@ }, getters, state: { icons:undefined,//图标库数据 viewtabparams:undefined, //tab浏览 Action参数 }, mutations: { // 规程详情参数 // tab浏览参数 getViewtabparams(state, obj) { state.viewtabparams = obj; }, // 图标库 getIcons(state, obj) { state.icons = obj; }, }, actions: { @@ -37,6 +42,15 @@ content:obj, type:'session' }); }, //保存图标库到本地 setIcons({commit},obj){ commit("getIcons", obj); setStore({ name:'icons', content:obj, type:'session' }); } } })