全局监听的话,不需要在单页面添加属性了,在路由上做一个中间件就行,在nuxt.config.js编辑. router: { middleware: ['auth'] }. auth是插件自带的, ...
確定! 回上一頁