import { showFailToast } from 'vant' // export const token = '01c54JHFBaaOkzA6XETYWgkxbxorMrroEyjBLls9Gpcc5BU7634OMG_bLyWXBxYA4jfrr6ij_aviuT5F8iLB3nTUFSg39xwEAlvQ' // export const userId = '2' // export const client = '' // export const userRoleId = '' let userInfo: undefined | { token: string } = undefined const localUserInfo = localStorage.getItem('userInfo') if (localUserInfo) { userInfo = JSON.parse(localUserInfo) } else { showFailToast('本地用户信息不存在') // userInfo = { // "user_id": "100", // "user_name": "tyyxadmin", // "user_realname": "局管理", // "user_password": "b923bc037bffebe673963ddd046c7306990ea7aa", // "user_group_id": "1", // "user_role_id": "69", // "user_level_id": "1", // "user_detail_id": null, // "user_score": "23", // "modify_dateline": "1616403054", // "create_dateline": "1616403054", // "isdelete": "0", // "area_id1": "0", // "area_id2": "0", // "area_id3": "0", // "area_id4": "0", // "sm_id": "0", // "sm_admin": "0", // "cm_id": "0", // "cm_admin": "0", // "user_phone": "", // "phone_validation": "0", // "parent_user_id": null, // "user_nickname": null, // "user_avatar": "https://ossdownload.bozedu.net/template/default/static/img/avatar_student_small.png", // "user_email": null, // "email_validation": "0", // "email_token": null, // "email_token_exptime": null, // "ischeck": "1", // "student_no": null, // "address": null, // "gender": null, // "about": null, // "qq": null, // "openid": "", // "webchatopenid": null, // "user_level": "1", // "user_birthday": "", // "grade_id": null, // "create_user_id": null, // "user_dept": "", // "user_cardno": null, // "dept_id": "", // "user_eyear": "0", // "user_grade_num": "0", // "user_class_num": "0", // "last_token": null, // "last_login": null, // "token": "01c54JHFBaaOkzA6XETYWgkxbxorMrroEyjBLls9Gpcc5BU7634OMG_bLyWXBxYA4jfrr6ij_aviuT5F8iLB3nTUFSg39xwEAlvQ" // } } console.log(userInfo) export default userInfo