派生自 wuyushui/SewerAndRainNetwork

ChenZeping02609
2021-05-13 672f791281b80a61dbda7d2c2d426dd90b31b982
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数据