mirror of
https://gitee.com/orangeform/orange-admin.git
synced 2026-01-18 11:06:36 +08:00
30 lines
961 B
JavaScript
30 lines
961 B
JavaScript
import { initUserInfo } from './utils';
|
|
import { getObjectFromSessionStorage, treeDataTranslate } from '@/utils';
|
|
|
|
export default {
|
|
// 是否左侧菜单折叠
|
|
isCollapse: false,
|
|
// 是否多栏目
|
|
supportColumn: false,
|
|
// 是否多标签
|
|
supportTags: true,
|
|
// 浏览器客户区高度
|
|
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)
|
|
}
|