Browse Source

全局参数修改 2022年11月14日 sxm

master
[li_she] 3 years ago
parent
commit
ded2e7be74
  1. 11
      src/views/main.vue

11
src/views/main.vue

@ -15,8 +15,8 @@
</template>
<script>
import {getConfigParams} from '@/api/sysConfig.js'
import MainNavbar from './main-navbar'
import MainSidebar from './main-sidebar'
import MainContent from './main-content'
export default {
@ -72,6 +72,7 @@
},
created () {
this.getUserInfo()
this.getConfigParams()
},
mounted () {
this.resetDocumentClientHeight()
@ -101,6 +102,14 @@
this.userDisplay = data.user.userDisplay
}
})
},
//
getConfigParams(){
getConfigParams().then(({data}) =>{
if (data && data.code == 0){
localStorage.setItem('configParams', JSON.stringify(data.data))
}
})
}
}
}

Loading…
Cancel
Save