File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
src/views/account/settings Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 6
6
<a-menu
7
7
:mode =" device == 'mobile' ? 'horizontal' : 'inline'"
8
8
:style =" { border: '0', width: device == 'mobile' ? '560px' : 'auto'}"
9
- :defaultSelectedKeys = " defaultSelectedKeys "
9
+ :selectedKeys = " selectedKeys "
10
10
type =" inner"
11
11
@openChange =" onOpenChange"
12
12
>
@@ -64,7 +64,7 @@ export default {
64
64
mode: ' inline' ,
65
65
66
66
openKeys: [],
67
- defaultSelectedKeys : [],
67
+ selectedKeys : [],
68
68
69
69
// cropper
70
70
preview: {},
@@ -96,7 +96,12 @@ export default {
96
96
},
97
97
updateMenu () {
98
98
const routes = this .$route .matched .concat ()
99
- this .defaultSelectedKeys = [ routes .pop ().path ]
99
+ this .selectedKeys = [ routes .pop ().path ]
100
+ }
101
+ },
102
+ watch: {
103
+ ' $route' (val) {
104
+ this .updateMenu ()
100
105
}
101
106
}
102
107
}
Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ module.exports = {
33
33
matchColors : getAntdSerials ( '#1890ff' ) , // 主色系列
34
34
// 改变样式选择器,解决样式覆盖问题
35
35
changeSelector ( selector ) {
36
- console . log ( selector )
37
36
switch ( selector ) {
38
37
case '.ant-calendar-today .ant-calendar-date' :
39
38
return ':not(.ant-calendar-selected-date)' + selector
You can’t perform that action at this time.
0 commit comments