cxmo 1 жил өмнө
parent
commit
896703b925
3 өөрчлөгдсөн 3 нэмэгдсэн , 1 устгасан
  1. 1 0
      .gitignore
  2. 1 0
      index.html
  3. 1 1
      src/api/crypto.js

+ 1 - 0
.gitignore

@@ -17,3 +17,4 @@
 
 /static/dll.vendor.js
 /.idea
+/static/base_config.js

+ 1 - 0
index.html

@@ -12,6 +12,7 @@
 	<link rel="icon" type="image/x-icon" href="./static/fa.ico" id="icon"/>
 	<script src="./static/js/vue.js"></script>  <!-- 开发版,开发过程中使用此方案-->
 	<script src="./static/js/main.js"></script>  <!-- 生产版,打包的时候使用此方案 -->
+	<script src="./static/base_config.js"></script>  <!-- key -->
 	<!-- 引入组件库 -->
 	
 	<!-- oss SDK -->

+ 1 - 1
src/api/crypto.js

@@ -1,4 +1,4 @@
-const key = '6WpHp4vSvLVQK8SLioNZ7WMq'; //eta
+const key = window.key||'6WpHp4vSvLVQK8SLioNZ7WMq'; //eta
 // const key = 'cJ3b1I4YBlTc85vnxy36xip2'; //逸诺
 // const key = 'bvS3kVp7QIZoD70fPk1wk41n'; //试用