Skip to content

Commit

Permalink
fixes to app after upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-hammant committed Apr 17, 2023
1 parent ab77020 commit 8a17b58
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ const routes = [
{
path: '/',
name: 'Home',
component: Home
component: Home,
children: [{
path: ":postId",
name: "post",
component: Home
}]
},
{
path: '/about',
Expand Down
4 changes: 4 additions & 0 deletions src/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@ import { createStore } from 'vuex'

export default createStore({
state: {
count:0
},
mutations: {
increment() {
this.state.count++;
}
},
actions: {
},
Expand Down

0 comments on commit 8a17b58

Please sign in to comment.