
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
vue-router-interceptor
Advanced tools
帮你轻松管理路由的轻型拦截器
在大型单页(SPA)应用中,路由起着举足轻重的作用,在遇到复杂场景的时候,通常需要在进入路由时进行各种验证拦截操作、数据前置等等,这款插件就是为这种复杂场景而生
npm install vue-router-interceptor --save-dev
import router from 'router'
import VueRouterInterceptor from 'vue-router-interceptor'
const interceptor = VueRouterInterceptor.Create(router)
const requireAuth = interceptor.register('requireAuth')
function middlewre () {
// ...
}
requireAuth.use(middleware)
requireAuth.listen()
更多细节请查阅 在线文档
MIT
FAQs
Effortlessly interceptor your router
The npm package vue-router-interceptor receives a total of 2 weekly downloads. As such, vue-router-interceptor popularity was classified as not popular.
We found that vue-router-interceptor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.