1. 问题场景
从上图可以看到,进入页面同一个接口执行了两次【当然这个次数不是固定的,会出现三次也会出现一次】,检查了页面代码,只在onShow生命周期请求了一次接口!
2. 问题原因
测试实例1:搜索参数name=123,正常
http://localhost:10086/#/pages/goodsList/goodsList?name=123
测试实例2:搜索参数name=a,正常
http://localhost:10086/#/pages/goodsList/goodsList?name=a
测试实例3:搜索参数name=A,正常
http://localhost:10086/#/pages/goodsList/goodsList?name=A
测试实例4:搜索参数name=中,