mirror of
https://gitee.com/orangeform/orange-admin.git
synced 2026-01-17 18:46:36 +08:00
33 lines
1022 B
JavaScript
33 lines
1022 B
JavaScript
import { initUserInfo } from './utils';
|
|
import { getObjectFromSessionStorage, treeDataTranslate } from '@/utils';
|
|
|
|
export default {
|
|
// 是否左侧菜单折叠
|
|
isCollapse: false,
|
|
// 是否多栏目
|
|
supportColumn: false,
|
|
// 是否多标签
|
|
supportTags: false,
|
|
// 浏览器客户区高度
|
|
documentClientHeight: 100,
|
|
// 浏览器客户区宽度
|
|
documentClientWidth: undefined,
|
|
// 在线表单查询页面缓存
|
|
onlineFormCache: {},
|
|
// 用户登录信息
|
|
userInfo: initUserInfo(),
|
|
// 缓存页面
|
|
cachePages: getObjectFromSessionStorage('cachePages', []),
|
|
// 当前标签
|
|
tagList: getObjectFromSessionStorage('tagList', []),
|
|
// 菜单列表
|
|
menuList: treeDataTranslate(getObjectFromSessionStorage('menuList', []), 'menuId', 'parentId'),
|
|
// 当前菜单
|
|
currentMenuId: getObjectFromSessionStorage('currentMenuId', undefined),
|
|
// 当前栏目
|
|
currentColumnId: getObjectFromSessionStorage('currentColumnId', undefined),
|
|
// 消息列表
|
|
messageTimeer: null,
|
|
messageList: []
|
|
}
|