|
@@ -15,7 +15,9 @@ const jsApiList = [
|
15
|
15
|
]
|
16
|
16
|
|
17
|
17
|
function initSDK (url) {
|
18
|
|
- request(`https://api.h5.njyunzhi.com/mp/jssdk?url=${encodeURIComponent(url)}`).then((res) => {
|
|
18
|
+ fetch(`https://api.h5.njyunzhi.com/mp/jssdk?url=${encodeURIComponent(url)}`)
|
|
19
|
+ .then(res => res.json())
|
|
20
|
+ .then((res) => {
|
19
|
21
|
window.wx.config({
|
20
|
22
|
debug: process.env.NODE_ENV === 'development',
|
21
|
23
|
appId: res.appId,
|