Skip to content
This repository was archived by the owner on Oct 23, 2020. It is now read-only.

Commit b53a7b8

Browse files
change interacrion with beforeRouteEnter
1 parent 53dd135 commit b53a7b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-acl",
3-
"version": "4.1.9",
3+
"version": "4.1.10",
44
"description": "Plugin of Access Control List from Vue JS 2",
55
"main": "dist/index.js",
66
"scripts": {

source/router.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { testPermission } from './checker'
1111
export const upRouter = (router, currentGlobal, notfound) => {
1212
if (router === null)
1313
return
14-
router.beforeEach((to, from, next) => {
14+
router.beforeRouteEnter((to, from, next) => {
1515

1616
/** @type {Array} */
1717
const routePermission = to.meta.rule

0 commit comments

Comments
 (0)