报错信息:
10:42:51.888 TypeError: $gwx is not a function
10:42:51.908 at file:///storage/emulated/0/Android/data/cn.taozhi.xuetang/apps/__UNI__EAA8C0F/www/app-view.js:122:27 at uniapp://ready:182
10:42:51.928 webviewScriptError
10:42:51.948 $gwx is not a function
10:42:51.968 TypeError: $gwx is not a function
10:42:51.988 at file:///storage/emulated/0/Android/data/cn.taozhi.xuetang/apps/__UNI__EAA8C0F/www/app-view.js:122:27 at uniapp://ready:182
10:42:52.008 Uncaught TypeError: $gwx is not a function at app-view.js:122
描述:
H5上可以正常访问,Android上 出现 白屏
原因:
语法错误
在v-for
中使用了三元表达式
如下:
<block v-for="(item, index) in keyword !== '' ? searchList : treeList" :key="index">
// ...
</block>
解决:
修改一下 v-for
就好了