Browse Source

主页展示

luyanan 6 years ago
parent
commit
f3e3c228f6
1 changed files with 19 additions and 17 deletions
  1. 19 17
      src/views/dashboard/admin/index.vue

+ 19 - 17
src/views/dashboard/admin/index.vue

@ -1,26 +1,21 @@
1 1
<template>
2 2
  <div class="dashboard-editor-container">
3
    <img class="plat-pic" src="/static/pg.png">
4
    <p class="plat-tit">欢迎使用<br />声脉桥梁云监控平台</p>
3
    <div>
4
      <img class="plat-pic" src="/static/touchwave.png" width="460">
5
      <p class="plat-tit">欢迎 <span>{{name}}</span> 使用声脉桥梁云监控平台</p>
6
    </div>
5 7
  </div>
6 8
</template>
7 9
8 10
9 11
<script>
12
import { mapGetters } from 'vuex'
10 13
export default {
11 14
  name: 'dashboard-admin',
12
  watch: {
13
    $route(to, from) {
14
      console.log(to.path)
15
    }
16
  },
17
  created() {
18
    // this.toPath()
19
  },
20
  methods: {
21
    // toPath() {
22
    //   this.$router.push({ name: 'infoManage' })
23
    // }
15
  computed: {
16
    ...mapGetters([
17
      'name'
18
    ])
24 19
  }
25 20
}
26 21
</script>
@ -32,13 +27,20 @@ export default {
32 27
  justify-content: center;
33 28
  flex-direction: column;
34 29
  text-align: center;
30
  margin: 20px;
31
  height: 100%;
32
  padding: 15% 0;
33
  background: #fff;
35 34
  .plat-pic{
36
    margin: 40px auto 10px;
35
    margin: 40px auto 0;
37 36
  }
38 37
  .plat-tit{
39 38
    font-size: 34px;
40
    line-height: 60px;
41
    letter-spacing: 4px;
39
    line-height: 40px;
40
    letter-spacing: 2px;
41
    span{
42
      color: #0f76c4;
43
    }
42 44
  }
43 45
}
44 46
</style>