File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -101,16 +101,15 @@ export default {
101101 } ,
102102 renderMenuItem ( menu ) {
103103 const target = menu . meta . target || null
104- const props = {
105- to : { name : menu . name } ,
106- target : target
107- }
104+ const tag = target && 'a' || 'router-link'
105+ const props = { to : { name : menu . name } }
106+ const attrs = { href : menu . path , target : menu . meta . target }
108107 return (
109108 < Item { ...{ key : menu . path } } >
110- < router-link { ...{ props } } >
109+ < tag { ...{ props, attrs } } >
111110 { this . renderIcon ( menu . meta . icon ) }
112111 < span > { menu . meta . title } </ span >
113- </ router-link >
112+ </ tag >
114113 </ Item >
115114 )
116115 } ,
Original file line number Diff line number Diff line change @@ -25,12 +25,11 @@ export const asyncRouterMap = [
2525 component : ( ) => import ( '@/views/dashboard/Analysis' ) ,
2626 meta : { title : 'εζι‘΅' , keepAlive : false , permission : [ 'dashboard' ] }
2727 } ,
28+ // ε€ι¨ιΎζ₯
2829 {
29- path : '/dashboard/monitor ' ,
30+ path : 'https://www.baidu.com/ ' ,
3031 name : 'Monitor' ,
31- hidden : true ,
32- component : ( ) => import ( '@/views/dashboard/Monitor' ) ,
33- meta : { title : 'ηζ§ι‘΅' , keepAlive : true , permission : [ 'dashboard' ] }
32+ meta : { title : 'ηζ§ι‘΅' , target : '_blank' }
3433 } ,
3534 {
3635 path : '/dashboard/workplace' ,
You canβt perform that action at this time.
0 commit comments