File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 2
2
<div id =" app" >
3
3
<img src =" ./assets/logo.png" >
4
4
{{#router}}
5
- <router-view ></ router-view >
5
+ <router-view / >
6
6
{{else}}
7
- <hello ></ hello >
7
+ <hello-world / >
8
8
{{/router}}
9
9
</div >
10
10
</template >
11
11
12
12
<script >
13
13
{{#unless router}}
14
- import Hello from ' ./components/Hello ' {{#if_eq lintConfig "airbnb "}};{{/ if_eq}}
14
+ import HelloWorld from ' ./components/HelloWorld ' {{#if_eq lintConfig "airbnb "}};{{/ if_eq}}
15
15
16
16
{{/ unless}}
17
17
export default {
18
18
name: ' app' {{#router}}{{#if_eq lintConfig " airbnb" }},{{/ if_eq}}{{else }},
19
19
components: {
20
- Hello {{#if_eq lintConfig " airbnb" }},{{/ if_eq}}
20
+ HelloWorld {{#if_eq lintConfig " airbnb" }},{{/ if_eq}}
21
21
}{{#if_eq lintConfig " airbnb" }},{{/ if_eq}}{{/ router}}
22
22
}{{#if_eq lintConfig " airbnb" }};{{/ if_eq}}
23
23
</script >
Original file line number Diff line number Diff line change 22
22
23
23
<script >
24
24
export default {
25
- name: ' hello ' ,
25
+ name: ' HelloWorld ' ,
26
26
data{{#unless_eq lintConfig " airbnb" }} {{/ unless_eq}}() {
27
27
return {
28
28
msg: ' Welcome to Your Vue.js App' {{#if_eq lintConfig " airbnb" }},{{/ if_eq}}
Original file line number Diff line number Diff line change 1
1
import Vue from 'vue' { { #if_eq lintConfig "airbnb" } } ; { { / i f _ e q } }
2
2
import Router from 'vue-router' { { #if_eq lintConfig "airbnb" } } ; { { / i f _ e q } }
3
- import Hello from '@/components/Hello ' { { #if_eq lintConfig "airbnb" } } ; { { / i f _ e q } }
3
+ import HelloWorld from '@/components/HelloWorld ' { { #if_eq lintConfig "airbnb" } } ; { { / i f _ e q } }
4
4
5
5
Vue . use ( Router ) { { #if_eq lintConfig "airbnb" } } ; { { / i f _ e q } }
6
6
@@ -9,7 +9,7 @@ export default new Router({
9
9
{
10
10
path : '/' ,
11
11
name : 'Hello' ,
12
- component : Hello { { #if_eq lintConfig "airbnb" } } , { { / i f _ e q } }
12
+ component : HelloWorld { { #if_eq lintConfig "airbnb" } } , { { / i f _ e q } }
13
13
} { { #if_eq lintConfig "airbnb" } } , { { / i f _ e q } }
14
14
] { { #if_eq lintConfig "airbnb" } } , { { / i f _ e q } }
15
15
} ) { { #if_eq lintConfig "airbnb" } } ; { { / i f _ e q } }
You can’t perform that action at this time.
0 commit comments