newMsg.ts 425 B

1234567891011121314151617181920212223242526
  1. export type newMsgState = {
  2. updateTime: string, // 消息推送更新时间
  3. };
  4. const state: newMsgState = {
  5. updateTime: '',
  6. };
  7. export default {
  8. namespaced: true,
  9. state,
  10. getters: {
  11. updateTime: (state): string => {
  12. return state.updateTime;
  13. }
  14. },
  15. mutations: {
  16. SET_UPDATATIME(state: newMsgState, payload: string): void {
  17. state.updateTime = payload;
  18. },
  19. },
  20. actions: {
  21. //
  22. },
  23. };