Selaa lähdekoodia

localstorage项目前缀

wgl 4 vuotta sitten
vanhempi
commit
6f1c08905e
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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))