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 {
101
101
} ,
102
102
renderMenuItem ( menu ) {
103
103
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 }
108
107
return (
109
108
< Item { ...{ key : menu . path } } >
110
- < router-link { ...{ props } } >
109
+ < tag { ...{ props, attrs } } >
111
110
{ this . renderIcon ( menu . meta . icon ) }
112
111
< span > { menu . meta . title } </ span >
113
- </ router-link >
112
+ </ tag >
114
113
</ Item >
115
114
)
116
115
} ,
Original file line number Diff line number Diff line change @@ -25,12 +25,11 @@ export const asyncRouterMap = [
25
25
component : ( ) => import ( '@/views/dashboard/Analysis' ) ,
26
26
meta : { title : 'εζι‘΅' , keepAlive : false , permission : [ 'dashboard' ] }
27
27
} ,
28
+ // ε€ι¨ιΎζ₯
28
29
{
29
- path : '/dashboard/monitor ' ,
30
+ path : 'https://www.baidu.com/ ' ,
30
31
name : 'Monitor' ,
31
- hidden : true ,
32
- component : ( ) => import ( '@/views/dashboard/Monitor' ) ,
33
- meta : { title : 'ηζ§ι‘΅' , keepAlive : true , permission : [ 'dashboard' ] }
32
+ meta : { title : 'ηζ§ι‘΅' , target : '_blank' }
34
33
} ,
35
34
{
36
35
path : '/dashboard/workplace' ,
You canβt perform that action at this time.
0 commit comments