Commit d96e6490 authored by anxixi's avatar anxixi

运营指标验收等功能

parent c4c68fdd
......@@ -562,7 +562,12 @@ export default {
//获取当前url前缀
getCurrentHrefEnv() {
return document.location.origin;
var origin = window.location.origin;
//判断orgin是否为undefined,如果是undefined则进行拼接
if (typeof (origin) == "undefined") {
origin = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port : '');
}
return origin;
},
//获取当前网络环境
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment