Commit 88254fab authored by aiduck's avatar aiduck

protocol

parent 8c005b24
...@@ -31,10 +31,11 @@ class Reporter { ...@@ -31,10 +31,11 @@ class Reporter {
} }
// 设置系统环境变量 // 设置系统环境变量
setEnvironment(env) { setEnvironment(env) {
let protocol = document.location.protocol;
if (env === "dev") { if (env === "dev") {
this.environmentUrl = "/hunter.duibadev.com.cn"; this.environmentUrl = `${protocol}/hunter.duibadev.com.cn`;
} else if (env === "prod") { } else if (env === "prod") {
this.environmentUrl = "/hunter.dui88.com"; this.environmentUrl = `${protocol}/hunter.dui88.com`;
} }
} }
// 上传CDN // 上传CDN
......
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