Rap 原分销系统代码Web
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

bb724638d81eaa8771830701c84a2e1a80583806.svn-base 424B

5 달 전
123456789101112131415161718
  1. import Cookies from 'js-cookie'
  2. import Config from '@/settings'
  3. const TokenKey = Config.TokenKey
  4. export function getToken() {
  5. return Cookies.get(TokenKey)
  6. }
  7. export function setToken(token, rememberMe) {
  8. if (rememberMe) {
  9. return Cookies.set(TokenKey, token, { expires: Config.tokenCookieExpires })
  10. } else return Cookies.set(TokenKey, token)
  11. }
  12. export function removeToken() {
  13. return Cookies.remove(TokenKey)
  14. }