From a95e33e99e9c23b8703aa698028fc78a77cea27c Mon Sep 17 00:00:00 2001 From: WongBin Date: Sun, 18 Jul 2021 14:29:12 +0800 Subject: [PATCH] Update index.js --- report-ui/src/filter/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/report-ui/src/filter/index.js b/report-ui/src/filter/index.js index 274751a2..202ac593 100644 --- a/report-ui/src/filter/index.js +++ b/report-ui/src/filter/index.js @@ -1,5 +1,5 @@ -import { setItem, getItem } from '@/utils/storage'; +import { getStorageItem } from '@/utils/storage'; // 字典 export function basecode(value, dicName) { if (value === undefined || value === null) { @@ -9,7 +9,7 @@ export function basecode(value, dicName) { return value } - var basecode = JSON.parse(localStorage.getItem('queryForCodeSelect')) + var basecode = getStorageItem('queryForCodeSelect') var dictList = basecode[dicName] var dictLabel = value for (var i = 0; i < dictList.length; i++) {