export default function () {
let user = JSON.parse(window.localStorage.getItem('user'))
if (!user) {
window.location = `/login`
}
if ( user.role == 'ADMINISTRATOR' ) {
let lowUppercase = user.role
this.$router.push({ path: `/1` })
}
}
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` })
}
}