import { Module, VuexModule, Mutation } from 'vuex-module-decorators' import { DataType } from '../utils/build-api' @Module({ name: 'global', stateFactory: true, namespaced: true, }) export default class GlobalModule extends VuexModule { hash: Record> = { posts: {}, slides: {}, } tag: Record = {} @Mutation setHash (h: any) { this.hash = h } @Mutation setTag (tag: any) { this.tag = tag } }