Jelajahi Sumber

localstorage项目前缀

wgl 4 tahun lalu
induk
melakukan
6f1c08905e
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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))