Commit ee00a414 authored by 程卓's avatar 程卓

修改getconfig

parent c059b476
......@@ -712,11 +712,9 @@ export default {
},
created(){},
mounted(){
console.log('当前登录api: ' + this.$api.BASE_URL)
this.getConfig()
if (this.$api.BASE_URL.indexOf('xuhui')!=-1 || this.$api.BASE_URL.indexOf('31.0.161.39')!=-1 ) { //徐汇分支
console.log('徐汇')
this.getList()
this.getConfig()
if (this.$store.state.userinfos && this.$store.state.userinfos.isAllPerm) { // 不是全部权限dashboard下方的模块不展示
this.getDisposal()
this.getHouthMonth()
......@@ -982,11 +980,16 @@ export default {
* 判断是否开启自定义字段
*/
getConfig(){
console.log(1)
this.$ajax.get({
url: this.$api.GET_CONFIG,
}).then(res => {
if (res.code === '200') {
console.log(2)
this.openConfig = this.$com.confirm(res, 'data.content', []).customKeyEnable
console.log(this.openConfig)
// 是否开启自定义字段存入cookie
this.$cookie.set('customKeyEnable', this.openConfig)
let isXuHui = this.$com.confirm(res, 'data.content', [])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment