1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <template>
- <div id="index">
- <el-row>
- <el-col :span="24" class="main">
- <el-col :span="24" class="top">
- <top topType="2" :leftArrow="false"></top>
- </el-col>
- <el-col :span="24" class="info" :style="{ height: clientHeight + 'px' }">
- 文章辟谣
- </el-col>
- <el-col :span="24" class="foot">
- <foot></foot>
- </el-col>
- </el-col>
- </el-row>
- </div>
- </template>
- <script>
- import top from '@/layout/common/top.vue';
- import foot from '@/layout/common/foot.vue';
- import { mapState, createNamespacedHelpers } from 'vuex';
- export default {
- name: 'index',
- props: {},
- components: {
- top,
- foot,
- },
- data: function() {
- return {
- clientHeight: '',
- };
- },
- created() {},
- mounted() {
- let clientHeight = (document.documentElement.clientHeight || document.body.clientHeight) - 90;
- this.$set(this, `clientHeight`, clientHeight);
- },
- methods: {},
- computed: {
- ...mapState(['user']),
- },
- metaInfo() {
- return { title: this.$route.meta.title };
- },
- watch: {},
- };
- </script>
- <style lang="less" scoped>
- .main {
- .top {
- height: 40px;
- overflow: hidden;
- border-bottom: 1px solid #f1f1f1;
- }
- .info {
- overflow-x: hidden;
- overflow-y: auto;
- }
- .foot {
- height: 50px;
- overflow: hidden;
- border-top: 1px solid #f1f1f1;
- }
- }
- </style>
|