- fix: starting the app it doesn't loaded the SingleTodo correctly...

the problem was:
  import { SingleTodo } from '@components'  // doesn't work:
  Resolve  :
  import { SingleTodo } from '../../SingleTodo'  // correct!
This commit is contained in:
Paolo Arena
2019-01-30 01:05:31 +01:00
parent 818a7a4289
commit 2515bb598e
14 changed files with 45 additions and 17 deletions

View File

@@ -9,6 +9,7 @@ const state: IGlobalState = {
mobileMode: false,
menuCollapse: true,
leftDrawerOpen: true,
category: 'personal',
posts: [],
listatodo: [
{namecat: 'personal', description: 'personal'},
@@ -24,6 +25,7 @@ namespace Getters {
const conta = b.read(state => state.conta, 'conta')
const listatodo = b.read(state => state.listatodo, 'listatodo')
const category = b.read(state => state.category, 'category')
export const getters = {
get conta() {
@@ -32,6 +34,10 @@ namespace Getters {
get listaTodo() {
return listatodo()
},
get category() {
return category()
}
}
}
@@ -46,9 +52,15 @@ namespace Mutations {
state.leftDrawerOpen = bool
}
function setCategorySel(state: IGlobalState, cat: string) {
state.category = cat
}
export const mutations = {
setConta: b.commit(setConta),
setleftDrawerOpen: b.commit(setleftDrawerOpen)
setleftDrawerOpen: b.commit(setleftDrawerOpen),
setCategorySel: b.commit(setCategorySel)
}
}