Rap 原分销系统代码Web
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.

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. }