This repository was archived by the owner on Jan 3, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 12
12
<div class =" notification is-dark menu-item" :class =" classObj(item)" >
13
13
<p >
14
14
{{ getTitle(item.title) }}
15
- <span class =" icon is-medium link" @click =" goTo($event, item.id)" ><icon name =" pencil" /></span >
15
+ <a :href =" goTo(item.id)" class =" is-inline-block is-paddingless" >
16
+ <span class =" icon is-medium" ><icon name =" pencil" /></span >
17
+ </a >
16
18
</p >
17
19
18
20
<!-- ops -->
Original file line number Diff line number Diff line change @@ -15,14 +15,8 @@ export default {
15
15
16
16
return title . hasOwnProperty ( locale ) ? Object . values ( title ) [ v ] : Object . values ( title ) [ 0 ] . concat ( ` "${ Object . keys ( title ) [ 0 ] } "` )
17
17
} ,
18
- goTo ( e , id ) {
19
- let url = this . editPage . replace ( 0 , id )
20
-
21
- if ( e . altKey || e . metaKey ) {
22
- return window . open ( url , '_blank' )
23
- }
24
-
25
- window . location . assign ( url )
18
+ goTo ( id ) {
19
+ return this . editPage . replace ( 0 , id )
26
20
} ,
27
21
trans ( key ) {
28
22
return this . translation [ key ]
Original file line number Diff line number Diff line change @@ -72,7 +72,9 @@ class="column is-4 menu-list"
72
72
{{-- title --}}
73
73
@ {{ getTitle(item.title) }}
74
74
{{-- edit --}}
75
- <span class =" icon is-medium link" @click =" goTo($event, item.id)" ><icon name =" pencil" /></span >
75
+ <a :href =" goTo(item.id)" class =" is-inline-block is-paddingless" >
76
+ <span class =" icon is-medium" ><icon name =" pencil" /></span >
77
+ </a >
76
78
</p >
77
79
78
80
{{-- ops --}}
@@ -120,7 +122,9 @@ class="column"
120
122
{{-- title --}}
121
123
@ {{ getTitle(item.title) }}
122
124
{{-- edit --}}
123
- <span class =" icon is-medium link" @click =" goTo($event, item.id)" ><icon name =" pencil" /></span >
125
+ <a :href =" goTo(item.id)" class =" is-inline-block is-paddingless" >
126
+ <span class =" icon is-medium" ><icon name =" pencil" /></span >
127
+ </a >
124
128
</p >
125
129
</li >
126
130
</draggable >
You can’t perform that action at this time.
0 commit comments