Skip to content

Commit aec732b

Browse files
committed
update App.vue
1 parent 8f1f016 commit aec732b

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

vue_notes/vue2_runoob/src/App.vue

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,23 @@
11
<template>
2-
<div id="app">
2+
<!-- <div id="app">
33
<img src="./assets/logo.png">
44
<router-view/>
5+
</div> -->
6+
<div class="hello">
7+
<h1>{{ msg }}</h1>
58
</div>
69
</template>
710

811
<script>
912
export default {
10-
name: 'App'
13+
// name: 'App'
14+
name: 'App',
15+
data () {
16+
return {
17+
'msg': '欢迎来到菜鸟教程!'
18+
}
19+
}
20+
1121
}
1222
</script>
1323

0 commit comments

Comments
 (0)