|
@@ -30,7 +30,8 @@
|
|
<el-container>
|
|
<el-container>
|
|
<HomeSide v-if="ifShowHomeSide" :key="sideKey" />
|
|
<HomeSide v-if="ifShowHomeSide" :key="sideKey" />
|
|
<el-container class="main-body">
|
|
<el-container class="main-body">
|
|
- <router-view></router-view>
|
|
|
|
|
|
+ <LinkTitles v-if="ifShowHomeSide" :key="Math.random()" />
|
|
|
|
+ <router-view class="main-content"></router-view>
|
|
<el-footer class="footer">© 启明泰和 2019</el-footer>
|
|
<el-footer class="footer">© 启明泰和 2019</el-footer>
|
|
</el-container>
|
|
</el-container>
|
|
</el-container>
|
|
</el-container>
|
|
@@ -105,6 +106,7 @@ import { mapActions, mapState } from "vuex";
|
|
import { USER_SIGNOUT } from "../../store/user";
|
|
import { USER_SIGNOUT } from "../../store/user";
|
|
import { CORE_API } from "@/constants/constants";
|
|
import { CORE_API } from "@/constants/constants";
|
|
import HomeSide from "./HomeSide.vue";
|
|
import HomeSide from "./HomeSide.vue";
|
|
|
|
+import LinkTitles from "./LinkTitles.vue";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: "Home",
|
|
name: "Home",
|
|
@@ -137,7 +139,7 @@ export default {
|
|
}
|
|
}
|
|
};
|
|
};
|
|
},
|
|
},
|
|
- components: { HomeSide },
|
|
|
|
|
|
+ components: { HomeSide, LinkTitles },
|
|
computed: {
|
|
computed: {
|
|
...mapState({ user: state => state.user }),
|
|
...mapState({ user: state => state.user }),
|
|
ifShowHomeSide() {
|
|
ifShowHomeSide() {
|
|
@@ -243,14 +245,21 @@ body > .el-container {
|
|
}
|
|
}
|
|
|
|
|
|
.main-body {
|
|
.main-body {
|
|
- min-height: calc(100vh - 60px);
|
|
|
|
|
|
+ min-height: calc(100vh - 60px - 20px);
|
|
display: flex;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
|
|
+ margin-top: 20px;
|
|
|
|
+ margin-left: 20px;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.main-content {
|
|
|
|
+ min-height: calc(100vh - 60px - 60px - 60px);
|
|
}
|
|
}
|
|
|
|
|
|
.footer {
|
|
.footer {
|
|
justify-self: flex-end;
|
|
justify-self: flex-end;
|
|
|
|
+ margin-left: -20px;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|
|
|
|
|