开发者工具这样报错,而且小程序无法授权登录怎么办?

发布于 6 年前作者 na537562 次浏览最后编辑 6 年前来自 issues

第一条红色报错:[渲染层错误] Some selectors are not allowed in component wxss, including tag name selectors, ID selectors, and attribute selectors.(./yl_welore/dist/tab-bar/index.wxss:57:1)

第二条红色报错:Setting data field “home_list” to undefined is invalid.

测试时 在开发者工具中 以及真机测试中均 出现授权登录 失败代码如下:

2 回复
hanping
hanping1 楼5 年前

1、只是一句警告,在component的wxss里尽量避免使用 标签、ID、属性选择器

2、不能将一个绑定的数据 setData 为 undefined

3、AppSecret不合法,看下是否重置过或者AppID填写错误

jinghou
jinghou2 楼5 年前

小程序appid 已经修改正确了 但是依然出现授权登录这个报错信息