访问 pageA却执行了pageB的onLoad onShow
发布于 5 年前 作者 yanliu 20292 次浏览 来自 问答

app.json

{

 

“pages”: [

    “pages/recharge/index”

    ]

}

pages:

appeal/index.js

recharge/index.js

明明访问的是pages/recharge/index,却执行的是 pages/appeal/index里面的 onLoad ,???

无语了,升级了一下工具,一堆异常

2 回复

你好,经测试未能复现问题,麻烦给个相关的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html),这个问题必现?

还有个问题 page.json里面

{
  "navigationBarTitleText": "订单申诉",
  "usingComponents": {
     
  }
}

usingComponents 留空或者加载一个组件都报错:

jsEnginScriptError

n is not a function

TypeError: n is not a function

    at _ (http://127.0.0.1:41679/appservice/__dev__/WAService.js:10:31844)

    at Function.y [as create] (http://127.0.0.1:41679/appservice/__dev__/WAService.js:11:16)

    at Function.p.prepare (http://127.0.0.1:41679/appservice/__dev__/WAService.js:9:29119)

    at L (http://127.0.0.1:41679/appservice/__dev__/WAService.js:11:31655)

    at W (http://127.0.0.1:41679/appservice/__dev__/WAService.js:11:31686)

    at U (http://127.0.0.1:41679/appservice/__dev__/WAService.js:12:118)

    at Function.<anonymous> (http://127.0.0.1:41679/appservice/__dev__/WAService.js:12:2422)

    at http://127.0.0.1:41679/appservice/__dev__/WAService.js:12:7206

    at http://127.0.0.1:41679/appservice/__dev__/WAService.js:4:10695

    at Array.forEach (<anonymous>)

回到顶部