退出登录之后不能导航
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user