Skip to content
  • This project
    • Loading...
  • Sign in

任超 / js.CadastralSystem

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • CadastralSystem
  • src
  • libs
  • auth.js
  • jiaoxiaoxi@pashanhoo.com's avatar
    feat:整体项目的架构 · 0cdc8715
    0cdc8715
    jiaoxiaoxi@pashanhoo.com committed 2020-09-16 14:05:02 +0800
auth.js 284 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
import Cookies from 'js-cookie'

const TokenKey = 'vue_admin_template_token'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}