Skip to content

Commit 8a17b58

Browse files
committed
fixes to app after upgrade
1 parent ab77020 commit 8a17b58

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/router/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@ const routes = [
55
{
66
path: '/',
77
name: 'Home',
8-
component: Home
8+
component: Home,
9+
children: [{
10+
path: ":postId",
11+
name: "post",
12+
component: Home
13+
}]
914
},
1015
{
1116
path: '/about',

src/store/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@ import { createStore } from 'vuex'
22

33
export default createStore({
44
state: {
5+
count:0
56
},
67
mutations: {
8+
increment() {
9+
this.state.count++;
10+
}
711
},
812
actions: {
913
},

0 commit comments

Comments
 (0)