宽度改变时改变导航栏宽度,这次真不自测了。。。我要睡了。。。
This commit is contained in:
@@ -19,9 +19,14 @@
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
navigationWidth: '100px'
|
||||
navigationWidth: '100px',
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
'$store.state.global.rightAsideWidth'() {
|
||||
this.computeNavigationWidth();
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
window.onresize = () => {
|
||||
this.computeNavigationWidth();
|
||||
|
||||
Reference in New Issue
Block a user