1.0.5 • Published 6 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
}
]
})