add blog
This commit is contained in:
1 parent
36338ed0d7
commit
7fe8f5d154
96 files changed
+21326
No files matched your search
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user