unreach-util
Advanced tools
Comparing version 0.11.4 to 0.11.5
{ | ||
"name": "unreach-util", | ||
"version": "0.11.4", | ||
"version": "0.11.5", | ||
"description": "前端工具基础库", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
import axios from 'axios'; | ||
import genv from './env'; | ||
const serverHost = /(\.[-\w]+\.[-\w]+)$/.exec(window.location.hostname)[1]; | ||
const reHost = /(\.[-\w]+\.[-\w]+)$/; | ||
const serverHost = (reHost.exec(window.location.hostname) || {})[1] || '.unreach.io'; | ||
@@ -6,0 +7,0 @@ export async function request({ |
14233
459