-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
打包后所有页面都默认开启了页面分享 #792
Comments
你好,方便提供可以复现的测试代码吗? |
刚又按以下步骤试了一下,可复现:
DEMO:build.zip |
你要用真机调试才能看出效果的,小程序编辑器看的效果是不准确的。 |
看了你的视频,你是不是在 npm run dev 下看的,那是正常的,build 完就不正常了,真机也是 |
这是用你的代码 build 完在真机上的视频 |
目前确定了是有这个bug,因为build的代码里面带着onShareAppMessage导致的,我们正在想办法解决,感谢您的反馈。 |
mehaotian
added a commit
that referenced
this issue
Sep 19, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述
页面没有定义 onShareAppMessage 方法,但是 npm run build 打包后会默认给所有页面加上该方法,npm run serve 开发不会出现该问题
复现步骤
npm run serve:mp-weixin 正常:
npm run build:mp-weixin 有问题:
预期结果
npm run build 打包后不应该给所有页面加上 onShareAppMessage 方法
实际结果
npm run build 打包后默认给所有页面加上 onShareAppMessage 方法
系统信息:
The text was updated successfully, but these errors were encountered: