refs #850 Replace Lists with typescript
This commit is contained in:
parent
d27562c5b4
commit
de1fda2947
|
@ -1,12 +0,0 @@
|
|||
import Index from './Lists/Index'
|
||||
import Show from './Lists/Show'
|
||||
import Edit from './Lists/Edit'
|
||||
|
||||
export default {
|
||||
namespaced: true,
|
||||
modules: {
|
||||
Index,
|
||||
Show,
|
||||
Edit
|
||||
}
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
import Index from './Lists/Index'
|
||||
import Show from './Lists/Show'
|
||||
import Edit from './Lists/Edit'
|
||||
import { Module } from 'vuex'
|
||||
import { RootState } from '@/store'
|
||||
|
||||
export interface ListsState {}
|
||||
|
||||
export interface ListsModuleState extends ListsState {}
|
||||
|
||||
const state = (): ListsState => ({})
|
||||
|
||||
export default {
|
||||
namespaced: true,
|
||||
state: state,
|
||||
modules: {
|
||||
Index,
|
||||
Show,
|
||||
Edit
|
||||
}
|
||||
} as Module<ListsState, RootState>
|
Loading…
Reference in New Issue