This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
nezha-nezha-fronted/nezha-fronted/src/App.vue
2020-04-22 19:45:10 +08:00

41 lines
725 B
Vue

<template>
<el-scrollbar class="app">
<div id="app">
<keep-alive>
<router-view style="height: 100%"/>
</keep-alive>
</div>
</el-scrollbar>
</template>
<script>
export default {
name: 'App',
mounted() {
// this.$http.get("config.json").then((result)=>{
// this.$axios.defaults.baseURL = result.body.baseUrl;
// });
this.$axios.defaults.baseURL = 'http://192.168.40.247:8080/nz-admin';
}
}
</script>
<style scoped>
#app{
height: 100%;
width: 100%;
}
</style>
<style>
.app {
height: 100%;
overflow-y: hidden;
}
.app>.el-scrollbar__wrap>.el-scrollbar__view {
height: 100%;
}
.app>.el-scrollbar__bar.is-vertical {
display: none;
}
</style>