This commit is contained in:
Pacharapol Withayasakpunt committed 2019-12-25 00:11:26 +07:00
1 parent 36338ed0d7
commit 7fe8f5d154
96 files changed
+21326

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
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<DataType, Record<string, string>> = {
posts: {},
slides: {},
}
tag: Record<string, number> = {}
@Mutation
setHash (h: any) {
this.hash = h
}
@Mutation
setTag (tag: any) {
this.tag = tag
}
}