1.0.5 • Published 11 months ago
dacong-vue-sso-check v1.0.5
本工具导出俩个函数名
routerCheck,这用于vue-router中requestCheck,这用于axios中
请在
meta中添加requiresAuth, 若为 true 则需要验证
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: [
{
path: '/',
name: 'home',
meta: {
title: '控制台',
requiresAuth: true
},
component: HomeView
}
]
})