import { Module } from 'vuex' ; import { RouterLocalStore } from './types' ; import mutations from './mutations' ; import actions from './actions' ; import clearStore from '@/store/clearStore' ; import extendsLocalStore from '@/store/extendsLocalStore' ; const createState = ( ) : RouterLocalStore => ( { state : 1 } ) ; const namespaced = true ; const routerStore = { namespaced , state : createState ( ) , mutations : { ... clearStore ( createState ) , ... extendsLocalStore , ... mutations } , actions , } ; export default routerStore ;