mirror of
https://gitee.com/orangeform/orange-admin.git
synced 2026-01-17 18:46:36 +08:00
commit:微服务工程目录
This commit is contained in:
29
orange-demo-multi/orange-demo-multi-web/src/store/state.js
Normal file
29
orange-demo-multi/orange-demo-multi-web/src/store/state.js
Normal file
@@ -0,0 +1,29 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user