Skip to content

Commit

Permalink
!50 update src/permission.js.
Browse files Browse the repository at this point in the history
Merge pull request !50 from bawwtracs/N/A
  • Loading branch information
lltx authored and gitee-org committed Aug 16, 2022
2 parents 3172447 + 07fbff8 commit da38ba9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/permission.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@ router.beforeEach((to, from, next) => {
store
.dispatch("GetUserInfo")
.then(() => {
const value = to.query.src || to.fullPath;
const label = to.query.name || to.name;
store.commit("ADD_TAG", {
label: label,
value: value,
params: to.params,
query: to.query,
group: router.$avueRouter.group || [],
});
next();
})
.catch(() => {
Expand Down

0 comments on commit da38ba9

Please sign in to comment.