|
@@ -114,6 +114,7 @@ export default {
|
|
|
mounted() {
|
|
|
this.$store.commit('SET_PREFIX', '/admin')
|
|
|
this.getUserinfo()
|
|
|
+ this.getSelect()
|
|
|
},
|
|
|
methods: {
|
|
|
handleSelect(index, path) {
|
|
@@ -127,6 +128,14 @@ export default {
|
|
|
this.$store.commit('SET_ADMIN_USERINFO', response.data)
|
|
|
})
|
|
|
},
|
|
|
+ // 获取类型字典项
|
|
|
+ getSelect() {
|
|
|
+ this.$api.getDict().then(response => {
|
|
|
+ localStorage.setItem('IS_ENABLE', response.data.IS_ENABLE)
|
|
|
+ localStorage.setItem('SEX', response.data.SEX)
|
|
|
+ localStorage.setItem('TENANT_TYPE', JSON.stringify(response.data.TENANT_TYPE))
|
|
|
+ })
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
</script>
|