import Vue from \'vue\'
import Vuex from \'vuex\'
Vue.use(Vuex);
const store = new Vuex.Store({
state: {
await:true, // 等待状态
temp:\'/financeProductManage\',
pageTab:[{path:\'/homePage\',name:\'主页\'}],
pageIndex:0,
topath:\'\',
custCis:\'\'
},
mutations: {
\"SET_CUSTCIS\": function (state,custCis) {
state.custCis = custCis;
},
\"SET_AWAIT\": function (state,trueth) {
state.await = trueth;
},
\"SET_PAGETAB\": function (state,obj) {
state.pageTab.push(obj);
state.pageIndex = state.pageTab.length-10;
},
\"SET_TEMP\": function (state,str) {
state.temp = str;
},
\"REP_PAGETAB\": function (state,list) {
state.pageTab = list;
console.log(state.pageIndex)
},
\"TO_PTATH\" : function (state,pth) {
state.topath = pth;
},
\"DEL_PAGETAB\": function (state,n) {
state.pageTab.splice(n,1);
state.pageIndex = state.pageTab.length-10;
console.log(state.pageIndex)
},
},
getters: {
\"GET_MSG\": function(state) {
console.log(\'获取\', state.await);
return state.await
}
},
actions: {
\"SET_MSG\": function(state, user_name) {
console.log(\'获取\', state.user_name);
setTimeout(function () {
store.commit(\"SET_AWAIT\", user_name)
},1000)
},
}
});
export default store
继续阅读与本文标签相同的文章
上一篇 :
排序算法——插入排序
-
岁数大了,发微信一定要注意!哪位群友总结的,太有才了
2026-05-18栏目: 教程
-
担心失去你的男人,才会给你这些“特权”,你懂吗?
2026-05-18栏目: 教程
-
Yotta专业存储设备芝麻云节点服务器IDC数据机房托管的优势
2026-05-18栏目: 教程
-
Edge逐步融入Fluent Design元素:新版颜色筛选器控件上线
2026-05-18栏目: 教程
-
阿里云服务器突发性能实例t5配置性能使用场景及注意事项
2026-05-18栏目: 教程
