1.0.5 • Published 8 months ago

dacong-vue-sso-check v1.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
8 months ago

本工具导出俩个函数名

  1. routerCheck,这用于 vue-router
  2. 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
    }
  ]
})
1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago