Преглед на файлове

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))