1
lxl
2022-09-16 2d9ddf8269640309f22053d3c92a38fd77e84358
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<template>
  <div class="home">
    <el-container>
      <el-container style="margin: 0px; padding: 0px; height: 100%">
        <el-main :style="styleVar">
          <router-view />
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>
 
<script>
import { mapMutations } from "vuex";
// import headerV from "../components/headers.vue";
export default {
  name: "Home",
  data() {
    return {
      currentPath: "",
      styleVar: {
        "--background": "transparent",
      },
      isshow: false,
    };
  },
  components: {
    // headerV,
  },
  watch: {},
  methods: {
    ...mapMutations(["INITIAL_DATA_MENU"]),
    //修改样式
    // UPstyle(e) {
    //   if (e == "/firstpage") {
    //     this.styleVar["--background"] = "#000";
    //   } else {
    //     this.styleVar["--background"] = "transparent";
    //   }
    // },
  },
  created() {
    // this.UPstyle(this.$route.path);
  },
};
</script>
<style scoped lang="less">
.home {
  height: 100%;
  position: relative;
  .el-container {
    height: 100%;
  }
}
.el-main {
  margin: 0px;
  padding: 0px;
  background: var(--background);
}
.breadcrumb {
  padding: 10px;
  background: #1e2c45;
  filter: blur(undefinedpx);
  font-size: 20px;
  color: #f0fafe;
  margin-top: 10px;
}
</style>