luyanan 6 ans auparavant
Parent
commit
f3e3c228f6
1 fichiers modifiés avec 19 ajouts et 17 suppressions
  1. 19 17
      src/views/dashboard/admin/index.vue

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

1
<template>
1
<template>
2
  <div class="dashboard-editor-container">
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
  </div>
7
  </div>
6
</template>
8
</template>
7
9
8
10
9
<script>
11
<script>
12
import { mapGetters } from 'vuex'
10
export default {
13
export default {
11
  name: 'dashboard-admin',
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
</script>
21
</script>
32
  justify-content: center;
27
  justify-content: center;
33
  flex-direction: column;
28
  flex-direction: column;
34
  text-align: center;
29
  text-align: center;
30
  margin: 20px;
31
  height: 100%;
32
  padding: 15% 0;
33
  background: #fff;
35
  .plat-pic{
34
  .plat-pic{
36
    margin: 40px auto 10px;
35
    margin: 40px auto 0;
37
  }
36
  }
38
  .plat-tit{
37
  .plat-tit{
39
    font-size: 34px;
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
</style>
46
</style>