From 8e8824c16628a64ebc4180c04697e9363ccf099e Mon Sep 17 00:00:00 2001 From: WongBin Date: Sun, 18 Jul 2021 14:28:35 +0800 Subject: [PATCH] Update storage.js --- report-ui/src/utils/storage.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/report-ui/src/utils/storage.js b/report-ui/src/utils/storage.js index f7485593..02a2aad1 100644 --- a/report-ui/src/utils/storage.js +++ b/report-ui/src/utils/storage.js @@ -1,5 +1,5 @@ import Cookies from 'js-cookie' -export function setItem(k, v) { +export function setCookie(k, v) { if(typeof(v) == "undefined" || v == null){ return; } @@ -12,7 +12,7 @@ export function setItem(k, v) { Cookies.get(k, val) } -export function getItem(k) { +export function getCookie(k) { var val = Cookies.get(k); try{ //如果是number boolean jsonstring是不会报错的 @@ -21,7 +21,7 @@ export function getItem(k) { return val; } } -export function delItem(k) { +export function delCookie(k) { Cookies.remove(k); }