feat: page history UI + nav links fix
This commit is contained in:
@@ -4,6 +4,7 @@ import Vuex from 'vuex'
|
||||
import pathify from 'vuex-pathify' // eslint-disable-line import/no-duplicates
|
||||
import { make } from 'vuex-pathify' // eslint-disable-line import/no-duplicates
|
||||
|
||||
import page from './page'
|
||||
import site from './site'
|
||||
|
||||
Vue.use(Vuex)
|
||||
@@ -49,6 +50,7 @@ export default new Vuex.Store({
|
||||
},
|
||||
actions: { },
|
||||
modules: {
|
||||
page,
|
||||
site
|
||||
}
|
||||
})
|
||||
|
21
client/store/page.js
Normal file
21
client/store/page.js
Normal file
@@ -0,0 +1,21 @@
|
||||
import { make } from 'vuex-pathify'
|
||||
|
||||
const state = {
|
||||
id: 0,
|
||||
authorId: 0,
|
||||
authorName: 'Unknown',
|
||||
createdAt: '',
|
||||
description: '',
|
||||
isPublished: true,
|
||||
locale: 'en',
|
||||
path: '',
|
||||
tags: [],
|
||||
title: '',
|
||||
updatedAt: ''
|
||||
}
|
||||
|
||||
export default {
|
||||
namespaced: true,
|
||||
state,
|
||||
mutations: make.mutations(state)
|
||||
}
|
Reference in New Issue
Block a user