收藏
回答

真机调试报错求解?

MiniProgramError

a.default.login is not a function

TypeError: a.default.login is not a function

    at Object.success (weapp:///pages/index/index.js:102:49)

    at Function.t.length.f.<computed> (eval at n.call.document (http://127.0.0.1:40028/remote-debug/runtime.js?devtools_ignore=true:1:15449), <anonymous>:2:1017501)

    at <api getUserInfo success callback function>

    at eval (eval at n.call.document (http://127.0.0.1:40028/remote-debug/runtime.js?devtools_ignore=true:1:15449), <anonymous>:2:161963)

    at success (eval at n.call.document (http://127.0.0.1:40028/remote-debug/runtime.js?devtools_ignore=true:1:15449), <anonymous>:2:812058)

    at success (eval at n.call.document (http://127.0.0.1:40028/remote-debug/runtime.js?devtools_ignore=true:1:15449), <anonymous>:2:1242809)

    at r.success (eval at n.call.document (http://127.0.0.1:40028/remote-debug/runtime.js?devtools_ignore=true:1:15449), <anonymous>:2:828109)

    at <api operateWXData success callback function>

    at Object.eval [as success] (eval at n.call.document (http://127.0.0.1:40028/remote-debug/runtime.js?devtools_ignore=true:1:15449), <anonymous>:2:161963)

    at a (eval at n.call.document (http://127.0.0.1:40028/remote-debug/runtime.js?devtools_ignore=true:1:15449), <anonymous>:2:819011)

errorReport @ VM13:2

thirdErrorReport @ VM13:2

eval @ VM13:2

p @ VM13:2

eval @ VM13:2

success @ VM13:2

success @ VM13:2

success @ VM13:2

p @ VM13:2

eval @ VM13:2

a @ VM13:2

vu @ VM13:2

wu @ VM13:2

eval @ VM13:2

s @ VM13:2

callAndRemove @ VM13:2

invokeCallbackHandler @ VM13:2

le @ runtime.js?devtools_ignore=true:1

Pe @ runtime.js?devtools_ignore=true:1

Le.He.onmessage @ runtime.js?devtools_ignore=true:1

回答关注问题邀请回答
收藏

2 个回答

  • 那一抹笑😃 穿透阳光
    那一抹笑😃 穿透阳光
    2023-05-06

    目测,是你代码有问题

    2023-05-06
    有用
    回复
  • xplee
    xplee
    2023-05-05

    不贴一下代码吗?index.js,102行

    2023-05-05
    有用
    回复
登录 后发表内容