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

fix(ui): 问题修复

parent 979ec2de
......@@ -38,16 +38,18 @@ export default class App {
};
}
async setWxConfig() {
setWxConfig() {
if (!isWechat) { return; }
api.getWxConfig().then(data => {
const [res] = data;
const wx = require('weixin-js-sdk');
const [res] = await api.getWxConfig();
wx.config({
debug: false,
debug: true,
jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage'], // 必填,需要使用的JS接口列表
openTagList: ['wx-open-launch-weapp', 'wx-open-launch-app'],
...res
});
});
}
fetch(vm): Promise<any> {
......
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