I can’t solve the problem, the v-icon are displayed normally if the middleware is not enabled, maybe my middleware is not correct?
template:
<v-icon>{{'mdi-close'}}</v-icon>
script:
middleware: ['auth'],
middleware/auth.js
export default function({store, redirect}){
if (!store.getters.hasToken) {
redirect('/login')
}
}