|
|
|
<!--
|
|
|
|
* @Author: ch
|
|
|
|
* @Date: 2022-05-04 17:56:39
|
|
|
|
* @LastEditors: ch
|
|
|
|
* @LastEditTime: 2022-05-08 15:53:49
|
|
|
|
* @Description: file content
|
|
|
|
-->
|
|
|
|
<template>
|
|
|
|
<div class="layout">
|
|
|
|
<BsLogin :visible.sync="loginVisible" />
|
|
|
|
<Header />
|
|
|
|
<Nuxt />
|
|
|
|
<Footer />
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
import BsLogin from "@/components/BsLogin.vue";
|
|
|
|
import Header from "./module/header/index.vue";
|
|
|
|
import Footer from "./module/footer/index.vue";
|
|
|
|
|
|
|
|
export default {
|
|
|
|
name: "Layout",
|
|
|
|
components: { Header, Footer, BsLogin },
|
|
|
|
computed: {
|
|
|
|
loginVisible: {
|
|
|
|
get() {
|
|
|
|
return this.$store.state.loginVisible;
|
|
|
|
},
|
|
|
|
set(val) {
|
|
|
|
this.$store.commit("setLoginVisible", val);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.layout-footer {
|
|
|
|
height: 189px;
|
|
|
|
background: #ddd;
|
|
|
|
}
|
|
|
|
</style>
|