【优化】用户分享到朋友圈,用户打开“单页模式"下,取消因无法交互而弹出的异常提醒。

This commit is contained in:
JianWeie
2022-05-30 13:04:15 +08:00
parent 129f461518
commit b3198fdfdb

View File

@@ -407,7 +407,11 @@
},
fail: function (res) {
//console.log(res);
_this.$refs.uToast.show({ message: '用户授权失败wx.login请重试', type: 'error', })
var scene = this.$store.state.scene;
//判断是否为 朋友圈内打开“单页模式",单页模式下,数据交互无法执行。所以不进行提醒
if (scene != 1154) {
_this.$refs.uToast.show({ message: '用户授权失败wx.login请重试', type: 'error', })
}
}
})
},