File tree 1 file changed +4
-8
lines changed
1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,7 @@ class HomeComponent extends ElComponent {
8
8
<p>Click the links in the navigation bar to go to other pages.</p>
9
9
</div>
10
10
` ,
11
- data : { } ,
12
- route : '/' ,
11
+ data : { }
13
12
} ) ;
14
13
}
15
14
}
@@ -24,8 +23,7 @@ class AboutComponent extends ElComponent {
24
23
<p>We are a company that specializes in creating web applications.</p>
25
24
</div>
26
25
` ,
27
- data : { } ,
28
- route : '/about' ,
26
+ data : { }
29
27
} ) ;
30
28
}
31
29
}
@@ -40,19 +38,17 @@ class NotFoundComponent extends ElComponent {
40
38
<p>The page you are looking for could not be found.</p>
41
39
</div>
42
40
` ,
43
- data : { } ,
44
- route : '/404' ,
41
+ data : { }
45
42
} ) ;
46
43
}
47
44
}
48
45
49
46
const router = new ElRouter ( {
50
- el : '#app' ,
51
47
routes : [
52
48
{ route : '/' , component : HomeComponent } ,
53
49
{ route : '/about' , component : AboutComponent } ,
54
50
{ route : '/404' , component : NotFoundComponent } ,
55
51
] ,
56
52
defaultRoute : '/' ,
57
53
errorRoute : '/404' ,
58
- } ) ;
54
+ } ) ;
You can’t perform that action at this time.
0 commit comments