export type newMsgState = { updateTime: string, // 消息推送更新时间 }; const state: newMsgState = { updateTime: '', }; export default { namespaced: true, state, getters: { updateTime: (state): string => { return state.updateTime; } }, mutations: { SET_UPDATATIME(state: newMsgState, payload: string): void { state.updateTime = payload; }, }, actions: { // }, };