import AppConfig from '@/config/index' ; import stageConfig from '@/config/stage' ; import { IAppState , IUserType } from '@/types/store' ; import { IRouterItem } from '@/types/project' ; export const appState = { logined : false , user : { } as IUserType , sideBarLevel : AppConfig . sideBarLevel || 3 , defaultRoute : AppConfig . defaultRoute || '/' , readedMessages : [ ] , unreadMessages : [ ] , permissions : [ ] , stageConfig , currentRoute : { config : { } as IRouterItem , treePath : [ ] } , histories : [ ] } ;