xuxueyang
2024-08-31 32526e5bddb7b14328b2467cd18783f480b33f3b
plugins/storage.js
@@ -1,5 +1,14 @@
// import Vue from 'vue'
const APPID = 'hmy-token' + process.env.PUB_TYPE
let APPID = 'hmy-token' + process.env.PUB_TYPE
// #ifdef PUB_CUSTOMER
APPID = 'hmy-token-customer'
// #endif
// #ifdef PUB_PARTNER
APPID = 'hmy-token-partner'
// #endif
const storage = {
   getItem(key) {
      return uni.getStorageSync(`${APPID}_${key}_${process.env.NODE_ENV}`)
@@ -17,4 +26,4 @@
// Vue.prototype.$storage = storage
export default storage
export default storage