From 4da76c251d09d707b13d08fd0cb8c9b79321628b Mon Sep 17 00:00:00 2001 From: zer0Black Date: Mon, 15 Mar 2021 20:51:53 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E6=94=B9]=E5=88=A0=E9=99=A4=E6=97=A0?= =?UTF-8?q?=E7=94=A8=E7=9A=84auth=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/src/utils/auth.js | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 jero-web/src/utils/auth.js diff --git a/jero-web/src/utils/auth.js b/jero-web/src/utils/auth.js deleted file mode 100644 index 03ae469f..00000000 --- a/jero-web/src/utils/auth.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * 弃用 - */ -import { setStore, getStore, clearStore } from "@/utils/storage" - -export const TokenKey = 'Access-Token' - -export function getToken() { - return getStore(TokenKey) -} - -export function setToken(token) { - // key, token, timeout = 86400s - return setStore(TokenKey, token, 86400) -} - -export function removeToken() { - return clearStore(TokenKey) -} \ No newline at end of file