天波用户运营管理后台系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 satır
452B

  1. /*
  2. * @Date: 2021-11-30 15:34:34
  3. * @LastEditors: JinxuChen
  4. * @LastEditTime: 2021-12-06 16:10:40
  5. * @FilePath: \GpsCardAdmin\src\utils\auth-token.js
  6. * @description:
  7. */
  8. import Cookies from 'js-cookie'
  9. const TokenKey = 'authtoken'
  10. export function getAuthToken() {
  11. return Cookies.get(TokenKey)
  12. }
  13. export function setAuthToken(token) {
  14. return Cookies.set(TokenKey, token)
  15. }
  16. export function removeAuthToken() {
  17. return Cookies.remove(TokenKey)
  18. }