From d7c50f6207f0f27f4c20aa96f75b7c0b610b2b23 Mon Sep 17 00:00:00 2001 From: 陈泽平 <chenzeping> Date: 星期四, 20 五月 2021 11:06:54 +0800 Subject: [PATCH] 管线弹框分析修改 --- src/utils/tools.js | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/src/utils/tools.js b/src/utils/tools.js index 0838a7f..f47703e 100644 --- a/src/utils/tools.js +++ b/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鏁版嵁杞崲涓烘爣鍑咼SON * @param obj collection鏁版嵁 -- Gitblit v1.8.0