xuxueyang
2024-09-13 731b3a23a6369aaef5c4fdc0ff4524eb6a7f3642
plugins/storage.js
@@ -1,5 +1,14 @@
// import Vue from 'vue'
const APPID = 'hmy-token'
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