派生自 wuyushui/SewerAndRainNetwork

chenzeping
2021-03-30 c0c0d75b2ed0191877d8cadfb39dedad6eabb407
src/utils/tools.js
@@ -25,7 +25,16 @@
  })
  return arr
}
/**
 * 根据不同的协议,替换env配置文件中的URL协议
 *
 * @return {String}
 */
export function getSchemeHost () {
  const protocol = window.location.protocol
  const host = process.env.VUE_APP_API_HOST
  return host.replace(/scheme/g, protocol)
}
/**
 * collection数据转换为标准JSON
 * @param obj collection数据