// states const state = { // 客户权限 permission: [ /** 王雷 */ "0465670920955596", /** 冯超 */ "0501106304684470", /** 王曙 */ "2950340343943278", /** 徐梦影 */ "055759385524364827", /** 陈秋梅 */ "165549180737964898", /** 燕江 */ "095358016621619612" ] }; // actions const actions = { // 客户分类 category(_, userId) { if ( [ /** 冯超 */ "0501106304684470", /** 陈秋梅 */ "165549180737964898" ].includes(userId) ) return "老客户"; if ( [ /** 王曙 */ "2950340343943278", /** 徐梦影 */ "055759385524364827" ].includes(userId) ) return "新客户"; return ""; } }; export default { namespaced: true, state, actions };