瀏覽代碼

localstorage项目前缀

wgl 4 年之前
父節點
當前提交
6f1c08905e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/utils/storage.js

+ 1 - 1
src/utils/storage.js

@@ -30,7 +30,7 @@ function delCookie(name) {
 }
 
 
-const prefix = ''
+const prefix = 'xpgj'
 const engine = window.localStorage
 
 export const get = key => !engine.getItem(prefix + key) ? null : JSON.parse(engine.getItem(prefix + key))