您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

actions.ts 356B

1234567891011121314151617
  1. import { SET_JWT } from './actionTypes';
  2. /**
  3. * Stores a specific JSON Web Token (JWT) into the redux store.
  4. *
  5. * @param {string} [jwt] - The JSON Web Token (JWT) to store.
  6. * @returns {{
  7. * type: SET_TOKEN_DATA,
  8. * jwt: (string|undefined)
  9. * }}
  10. */
  11. export function setJWT(jwt?: string) {
  12. return {
  13. type: SET_JWT,
  14. jwt
  15. };
  16. }