Unknown custom element: <wx-open-launch-app>
发布于 4 年前 作者 hanwei 8553 次浏览 来自 问答

https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/Wechat_Open_Tag.html

报错信息如下:

webpack-internal:///./node_modules/vue/dist/vue.runtime.esm.js:620 [Vue warn]: Unknown custom element: <wx-open-launch-app> - did you register the component correctly? For recursive components, make sure to provide the “name” option.

我的代码配置如下:

wx.config({

debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。

appId: res.result.appId, // 必填,公众号的唯一标识

timestamp: res.result.timestamp, // 必填,生成签名的时间戳

nonceStr: res.result.nonceStr, // 必填,生成签名的随机串

signature: res.result.signature, // 必填,签名

jsApiList: ["updateAppMessageShareData", "updateTimelineShareData"], // 必填,需要使用的JS接口列表

openTagList: ["wx-open-launch-app"], // 可选,需要使用的开放标签列表,例如['wx-open-launch-app']

});

wx.ready(function() {});

1 回复

你好,麻烦提供下公众号帐号

回到顶部