We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab77020 commit 8a17b58Copy full SHA for 8a17b58
src/router/index.js
@@ -5,7 +5,12 @@ const routes = [
5
{
6
path: '/',
7
name: 'Home',
8
- component: Home
+ component: Home,
9
+ children: [{
10
+ path: ":postId",
11
+ name: "post",
12
+ component: Home
13
+ }]
14
},
15
16
path: '/about',
src/store/index.js
@@ -2,8 +2,12 @@ import { createStore } from 'vuex'
2
3
export default createStore({
4
state: {
+ count:0
mutations: {
+ increment() {
+ this.state.count++;
+ }
actions: {
0 commit comments