From feebf68645a0c91e07c7eadeb04ae970001f1fc1 Mon Sep 17 00:00:00 2001 From: zhanghua <314079846@qq.com> Date: 星期一, 31 十月 2022 22:53:44 +0800 Subject: [PATCH] 单兵设备、音柱 --- src/utils/auth.js | 22 +++++++++++----------- 1 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/utils/auth.js b/src/utils/auth.js index f6388e4..12a4292 100644 --- a/src/utils/auth.js +++ b/src/utils/auth.js @@ -1,15 +1,15 @@ -// import Cookies from 'js-cookie' +import Cookies from 'js-cookie' -// const TokenKey = 'loginToken' +const TokenKey = 'loginToken' -// export function getToken() { -// return Cookies.get(TokenKey) -// } +export function getToken() { + return Cookies.get(TokenKey) +} -// export function setToken(token) { -// return Cookies.set(TokenKey, token) -// } +export function setToken(token) { + return Cookies.set(TokenKey, token) +} -// export function removeToken() { -// return Cookies.remove(TokenKey) -// } +export function removeToken() { + return Cookies.remove(TokenKey) +} -- Gitblit v1.8.0