退出登录之后不能导航

This commit is contained in:
2020-10-26 10:54:10 +08:00
parent 718caa7457
commit fa65e674d4
3 changed files with 9 additions and 0 deletions

View File

@@ -255,6 +255,9 @@ export default defineComponent({
})
function navto(index: number | string){
if(!store.state.islogin){
return ;
}
if(typeof index == "number"){
router.push({
path: nav[index].route