From 1f5d63f62c4a1b1d73927d276b116d79bece8566 Mon Sep 17 00:00:00 2001
From: chenyabin <Chenab123!>
Date: 星期日, 25 四月 2021 10:32:34 +0800
Subject: [PATCH] 附属设施修改增加附属设施按钮1

---
 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