-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.vue
88 lines (85 loc) · 1.46 KB
/
App.vue
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<template>
<div id="app">
<router-link to="/FirstPage">
第一页
</router-link>
<router-link to="/timeline">
给访问的人看的第一页
</router-link>
<router-link to="/Skills">
测试
</router-link>
<router-link to="/ceshi">
真正测试
</router-link>
<router-link to="/CopyMap">
复制的
</router-link>
<router-link to="/moban">
模板
</router-link>
<router-link to="/SecondPage">
第二页
</router-link>
<router-link to="/showPic">
加载
</router-link>
<router-view v-if="isRouterAlive"></router-view>
</div>
</template>
<script>
import axios from 'axios';
export default {
name: 'App',
provide () {
return {
reload: this.reload
}
},
data(){
return{
isRouterAlive: true,
}
},
methods:{
reload () {
this.isRouterAlive = false
this.$nextTick(function () {
this.isRouterAlive = true
})
},
},
created(){
axios.get(`${this.$store.state.address}/updateHits`).then((data)=>{
})
}
}
</script>
<style>
.inBottom{
height: 30px;
width: 300px;
position: absolute;
margin: 0 auto;
bottom: 10px;
}
i{
cursor: pointer;
}
.box-card {
width: 300px;
height: 200px;
position: relative;
display: inline-block;
}
.emptyBox{
width: 12px;
height: 12px;
}
.beWide{
margin-bottom: 20px;
}
body{
background: #E9EAED;
}
</style>