Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixes to app after upgrade
  • Loading branch information
paul-hammant committed Apr 17, 2023
commit 8a17b58454f0b6e9e1b5be8408aea81eaf3d39f8
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