ext.js 338 B

123456789101112131415
  1. /**
  2. * 获取ext配置
  3. * @param {string} type - 配置key
  4. * @returns {string} 配置数据值
  5. */
  6. function getExtStoreId(type){
  7. try{
  8. const extConfig = uni.getExtConfigSync ? uni.getExtConfigSync() : {}
  9. return extConfig[type];
  10. }catch(err){
  11. console.log(err,'getExtStoreId__error')
  12. }
  13. }
  14. export default { getExtStoreId };