Вы можете использовать
redirect
export default function ({ redirect }) {
let user = JSON.parse(window.localStorage.getItem('user'))
if (!user) {
window.location = `/login`
}
if ( user.role == 'ADMINISTRATOR' ) {
let lowUppercase = user.role
redirect({ path: `/1` })
}
}