
import router from '@/router'
import useAppStore from '@/store/modules/app'
import {emitter} from '@/utils/eventBus'
const appStore = useAppStore()

export function changeRoute() {
  const type = appStore.navStatus.type === 'manage' ? 'project' : 'manage'
  appStore.setNavStatus({type: type})

  if(type === 'manage'){
    router.push({
      path: '/project/Project'
    })
  }
  emitter.emit('event-name')
}