/** * user_applicant --申请者 * user_manager --管理员 */ import tabBar from '../../utils/tabBar.js'; import { getUserProfile } from '@/utils/auth.js'; let temp = 'user_manager'; if (uni.getStorageSync("userInfo")) { const userInfo = JSON.parse(uni.getStorageSync("userInfo")); if (userInfo.salt === "物业人员") { temp = 'user_manager'; } else { temp = 'user_applicant'; } } let type = temp; const state = { list: tabBar[type] } export default { namespaced: true, state }