宽度改变时改变导航栏宽度,这次真不自测了。。。我要睡了。。。

This commit is contained in:
暮光:城中城
2021-12-03 00:08:49 +08:00
parent f86ad19afd
commit ffa6d669ba
11 changed files with 20 additions and 7 deletions

View File

@@ -19,9 +19,14 @@
},
data() {
return {
navigationWidth: '100px'
navigationWidth: '100px',
};
},
watch: {
'$store.state.global.rightAsideWidth'() {
this.computeNavigationWidth();
}
},
mounted() {
window.onresize = () => {
this.computeNavigationWidth();