-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.vue
40 lines (40 loc) · 825 Bytes
/
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
<template>
<!--<h1>welcome Vue</h1>
<h2 @click="change">{{msg}}</h2>
<my-menu></my-menu>-->
<div id="app">
<h3>vue-loader+ vue-router</h3>
<div>
<a v-link="{path:'/home'}">主页</a>
<a v-link="{path:'/news'}">新闻</a>
</div>
<router-view></router-view>
</div>
</template>
<script>
/*import Menu from './components/Menu.vue'
export default{
data(){
return {
msg:'welcome vue'
}
},
methods:{
change(){
this.msg='wahaha'
}
},
components:{
'my-menu':Menu
}
}*/
</script>
<style>
body{
background:#ccc;
}
.v-link-active{
font-size:20px;
color:#f60;
}
</style>