const state = {
		count: 10,
		collapsed: false,
		bzTag : {
				purchaseOrderUnableToPurchase:1
		},
		dataObj: {
				region: 'oss-cn-hangzhou',
				accessKeyId: 'LTAI4Fopz6vz2f4ni8By4a2P',
				accessKeySecret: 'mfzrmhqP5a8JwWP4WNNW2DDWUPZOQ3',
				bucket: 'jzm-oss'
		},
		dynamicTags: [{name: '首页',path: '/index/index',type:''}],
		// 菜单树
		menuTree: [
				{
						path: '/',
						name: '工作台',
						iconCls: 'el-icon-film',
						leaf: true,
						children: [
								{path: '/index/index', name: '工作台'},
						]
				},
				{
						path: '/',
						name: '发货仓库配置',
						iconCls: 'el-icon-notebook-1',
						leaf: false,
						children: [
							{path: '/warehouseConfiguration/deliveryWarehouse', name: '发货仓库'},
							{path: '/warehouseConfiguration/shipperInformation', name: '发件人信息'},
						]
				},
				{
					path: '/',
					name: '物流配置',
					iconCls: 'el-icon-notebook-1',
					leaf: false,
					children: [
						{path: '/logisticsConfiguration/companyChannels', name: '公司物流渠道'},
					]
				},
	]
};
const getters = {
		count: state => {
				return state.count
		}
}
const mutations = {
		collapsedChange(state, newState) {
				state.collapsed = newState
		},
		getTopMenu(state, newState) {
				state.dynamicTags = newState
		},
		increment(state) {
				state.count++
		},
		decrement(state) {
				state.count--
		}
}
export default {
		state,
		mutations,
		getters
}