File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 33 <privilege-menu
44 :routerMap =" routerMap"
55 :role =" role"
6+ router
67 @select =" handleSelect"
78 @open =" handleOpen"
89 @close =" handleClose" />
Original file line number Diff line number Diff line change @@ -57,13 +57,11 @@ export default {
5757 },
5858 methods: {
5959 menuGenerate () {
60- if (this .router ){
61- let realRoutes = routesGenerate (this .routerMap , this .role )
62- this .$router .addRoutes (realRoutes)
63- this .$router .options .routes = this .$router .options .routes ?
64- this .$router .options .routes .concat (realRoutes) :
65- realRoutes
66- }
60+ let realRoutes = routesGenerate (this .routerMap , this .role )
61+ this .$router .addRoutes (realRoutes)
62+ this .$router .options .routes = this .$router .options .routes ?
63+ this .$router .options .routes .concat (realRoutes) :
64+ realRoutes
6765 this .siders = sideMenuGenerate (this .routerMap , this .role )
6866 }
6967 },
Original file line number Diff line number Diff line change 11{
22 "name" : " vue-privilege-menu" ,
33 "description" : " Automatically generate routes and menu by given privilege" ,
4- "version" : " 1.0.13 " ,
4+ "version" : " 1.1.1 " ,
55 "author" : " zhangkeyu" ,
66 "license" : " MIT" ,
77 "private" : false ,
You can’t perform that action at this time.
0 commit comments