12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <!--
- * @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
- * @Date: 2022-07-01 17:39:58
- * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
- * @LastEditTime: 2023-06-13 10:29:28
- * @FilePath: \agentManage\src\layout\components\AppMain.vue
- * @Description:
- *
- * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved.
- -->
- <template>
- <section class="app-main">
- <transition name="fade-transform" mode="out-in">
- <keep-alive>
- <router-view :key="key" />
- </keep-alive>
- </transition>
- </section>
- </template>
- <script>
- export default {
- name: 'AppMain',
- computed: {
- key() {
- return this.$route.path
- }
- }
- }
- </script>
- <style scoped>
- .app-main {
- /*50 = navbar */
- height: calc(100vh - 50px);
- width: 100%;
- position: relative;
- overflow: auto;
- }
- .fixed-header+.app-main {
- padding-top: 50px;
- }
- </style>
- <style lang="scss">
- // fix css style bug in open el-dialog
- .el-popup-parent--hidden {
- .fixed-header {
- padding-right: 15px;
- }
- }
- </style>
|