diff --git a/frontend/src/business/App.vue b/frontend/src/business/App.vue index 51bb0aa122..ef933ae4de 100644 --- a/frontend/src/business/App.vue +++ b/frontend/src/business/App.vue @@ -109,7 +109,8 @@ export default { localStorage.setItem("store", JSON.stringify(this.$store.state)); }); this.isFixed = localStorage.getItem('app-fixed') === 'true' || false; - this.isCollapse = this.isFixed === true ? false : true; + this.isCollapse = !this.isFixed; + this.$store.commit('setAppFixed', this.isFixed); }, beforeCreate() { this.$get("/isLogin").then(response => { @@ -187,6 +188,7 @@ export default { } localStorage.removeItem('app-fixed'); localStorage.setItem('app-fixed', this.isFixed); + this.$store.commit('setAppFixed', this.isFixed); }, collapseOpen() { this.isCollapse = false; diff --git a/frontend/src/business/components/track/plan/view/comonents/report/detail/TestPlanReportNavigationBar.vue b/frontend/src/business/components/track/plan/view/comonents/report/detail/TestPlanReportNavigationBar.vue index e9404a0713..90dfb09dfb 100644 --- a/frontend/src/business/components/track/plan/view/comonents/report/detail/TestPlanReportNavigationBar.vue +++ b/frontend/src/business/components/track/plan/view/comonents/report/detail/TestPlanReportNavigationBar.vue @@ -2,7 +2,7 @@
{ state.fileDownloadList.splice(state.fileDownloadList.findIndex(item => item.id === props), 1); }, + setAppFixed: (state, value) => state.appFixed = value, } export default mutations;