1.发现在安卓端都是合适的,ios wx.agentConfig注入权限失败,报错原因
"Uncaught (in promise) " {name: "TypeError", message: "undefined is not a function (near '...wx.agentConfig...')", stack: "setAgentConfig@\nsetAgentConfig@[native code]\n@\nasyncFunctionResume@[native code]\n@[native code]\npromiseReactionJobWithoutPromise@[native code]\npromiseReactionJob@[native code]"}
解决方案 建议使用延时器包裹2. 企微在分享式 wx.invoke中的imgUrl参数为必传选项,不传就会报失败。
3.企微在调试时需要安装vconsole依赖
4.在本地运行时,需要注释掉 混入
import ThirdPartyLogins from '@/mixin/ThirdPartyLogins'
import FloatingPopup from './views/folating-popup/index.vue'
export default {
name: 'App',
data() {
return {}
},
mixins: [ThirdPartyLogins],
components: {
FloatingPopup,
},
mounted() {
this.$nextTick(function () {
if (/Mobi|Android|iPhone/i.test(navigator.userAgent)) {
document.documentElement.style.fontSize = '42px'
}
})
},