Commit ef8cc662 authored by 郭志伟's avatar 郭志伟

fix(ui): 问题修复

parent 979ec2de
...@@ -38,15 +38,17 @@ export default class App { ...@@ -38,15 +38,17 @@ export default class App {
}; };
} }
async setWxConfig() { setWxConfig() {
if (!isWechat) { return; } if (!isWechat) { return; }
const wx = require('weixin-js-sdk'); api.getWxConfig().then(data => {
const [res] = await api.getWxConfig(); const [res] = data;
wx.config({ const wx = require('weixin-js-sdk');
debug: false, wx.config({
jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage'], // 必填,需要使用的JS接口列表 debug: true,
openTagList: ['wx-open-launch-weapp', 'wx-open-launch-app'], jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage'], // 必填,需要使用的JS接口列表
...res openTagList: ['wx-open-launch-weapp', 'wx-open-launch-app'],
...res
});
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment