Skip to content

Commit

Permalink
perf: dashboard add cache
Browse files Browse the repository at this point in the history
  • Loading branch information
PanJiaChen committed Apr 28, 2019
1 parent f24b643 commit d4be15d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mock/role/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const constantRoutes = [
path: 'dashboard',
component: 'views/dashboard/index',
name: 'Dashboard',
meta: { title: 'dashboard', icon: 'dashboard', noCache: true, affix: true }
meta: { title: 'dashboard', icon: 'dashboard', affix: true }
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const constantRoutes = [
path: 'dashboard',
component: () => import('@/views/dashboard/index'),
name: 'Dashboard',
meta: { title: 'dashboard', icon: 'dashboard', noCache: true, affix: true }
meta: { title: 'dashboard', icon: 'dashboard', affix: true }
}
]
},
Expand Down

2 comments on commit d4be15d

@Armour
Copy link
Contributor

@Armour Armour commented on d4be15d May 14, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason for this? I try to switch the permission between admin and editor and I see the dashboard keeps the editor's version even for the admin role, not sure if this is a bug.

@PanJiaChen
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Armour Fixed in #2072

Please sign in to comment.