Commit 557a88b0 by wanglizhen

返回项目管理

parent b19c747f
import router from '@/router'
import useAppStore from '@/store/modules/app' import useAppStore from '@/store/modules/app'
import usePermissionStore from '@/store/modules/permission'
const appStore = useAppStore() const appStore = useAppStore()
const permissionStore = usePermissionStore()
export function changeRoute() { export function changeRoute() {
let menus = appStore.allnavList const type = appStore.navStatus.type === 'manage' ? 'project' : 'manage'
console.log('allnavList',menus)
let type = appStore.navStatus.type === 'manage' ? 'project' : 'manage'
let filterMenus = type === 'manage' ? menus.filter(item => item.type === '1') : menus.filter(item => item.type === '2')
console.log('filterMenus',filterMenus)
appStore.setallNav(menus)
appStore.setNavStatus({type: type}) appStore.setNavStatus({type: type})
if(type === 'manage'){
router.push({
path: '/project/Project'
})
}
} }
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论