李志伟 3 år sedan
förälder
incheckning
865d05575f
2 ändrade filer med 1 tillägg och 2 borttagningar
  1. 0
    1
      src/utils/request.js
  2. 1
    1
      src/utils/wx.js

+ 0
- 1
src/utils/request.js Visa fil

@@ -1 +0,0 @@
1
-// import axios from 'axios'

+ 1
- 1
src/utils/wx.js Visa fil

@@ -13,7 +13,7 @@ function init() {
13 13
   const url = location.origin + location.pathname
14 14
   request(`https://api.h5.njyunzhi.com/mp/jssdk?url=${encodeURIComponent(url)}`).then((res) => {
15 15
     window.wx.config({
16
-      debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
16
+      debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
17 17
       appId: res.appId, // 必填,公众号的唯一标识
18 18
       timestamp: res.timestamp, // 必填,生成签名的时间戳
19 19
       nonceStr: res.nonceStr, // 必填,生成签名的随机串