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